Skip to content

Instantly share code, notes, and snippets.

@Bludwarf
Last active November 17, 2019 00:20
Show Gist options
  • Save Bludwarf/ec073277a36ba4dc65927c862c11aca4 to your computer and use it in GitHub Desktop.
Save Bludwarf/ec073277a36ba4dc65927c862c11aca4 to your computer and use it in GitHub Desktop.
Travis build for Angular app on GitHub
language: node_js
node_js:
- "10"
sudo: false
dist: trusty
#addons:
# apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable
cache:
directories:
- ./node_modules
branches:
only:
- master
install:
- yarn
script:
# - yarn test --code-coverage --watch=false --progress=false --browsers=ChromeHeadlessCI
- yarn build --prod --base-href /anno1404/
# - mkdir ~/.dts
# - yarn dtslint
# - yarn e2e --protractor-config=./e2e/protractor-ci.conf.js
after_success:
- cat coverage/s-ng-utils/lcov.info | node_modules/coveralls/bin/coveralls.js
deploy:
provider: pages
edge: true # https://docs.travis-ci.com/user/deployment-v2
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: dist
on:
branch: master
{
"projects": {
"anno1404": {
"architect": {
"build": {
"options": {
"outputPath": "dist",
}
}
}
}
}
}
module.exports = function (config) {
config.set({
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
// https://github.com/angular/protractor/issues/4850#issuecomment-398296383
flags: ['--headless', '--disable-gpu', '--no-sandbox', '--disable-extensions', '--disable-dev-shm-usage']
}
},
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment