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,