Last active
November 17, 2019 00:20
-
-
Save Bludwarf/ec073277a36ba4dc65927c862c11aca4 to your computer and use it in GitHub Desktop.
Travis build for Angular app on GitHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"projects": { | |
"anno1404": { | |
"architect": { | |
"build": { | |
"options": { | |
"outputPath": "dist", | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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