From 441e0763b9d3bd6aa1ffde07028128a00b8ddb5e Mon Sep 17 00:00:00 2001 From: CerealKiller97 Date: Thu, 8 Aug 2019 13:32:13 +0200 Subject: [PATCH] Configuring TravisCI --- .travis.yml | 17 +++++++++++++++++ karma.conf.js | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..84b3845 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: node_js +node_js: + - "10" +dist: trusty +sudo: requiredbranches: + only: + - masterbefore_script: + - npm install -g @angular/cliscript: + - ng lint + - npm run test-headless + - ng build --prod --build-optimizer --base-href https://cerealkiller97.github.io/NG-VideoGamer: + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN + local_dir: dist/travis-demo + on: + branch: master diff --git a/karma.conf.js b/karma.conf.js index 45e3cf8..1ac51a9 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -20,6 +20,12 @@ module.exports = function (config) { reports: ['html', 'lcovonly', 'text-summary'], fixWebpackSourcePaths: true }, + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true,