diff --git a/.travis.yml b/.travis.yml index f90fa53..927a258 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ cache: script: - ng lint + - ng test --watch=false - ng build --prod deploy: @@ -27,7 +28,7 @@ deploy: skip-cleanup: true github-token: $GITHUB_TOKEN keep-history: true - local-dir: ./dist/ + local-dir: ./dist/video-gamer on: -after_success: cp .htaccess dist/ +after_success: cp .htaccess dist/video-gamer diff --git a/karma.conf.js b/karma.conf.js index 1ac51a9..824e936 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -3,6 +3,13 @@ module.exports = function (config) { config.set({ + browsers: ['MyHeadlessChrome'], + customLaunchers: { + MyHeadlessChrome: { + base: 'ChromeHeadless', + flags: ['--disable-translate', '--disable-extensions', '--remote-debugging-port=9223', '--no-sandbox'] + } + }, basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [