Skip to content

Commit

Permalink
Travis CI chrome headless fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CerealKiller97 committed Aug 30, 2019
1 parent ce74052 commit 8b488cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cache:

script:
- ng lint
- ng test --watch=false
- ng build --prod

deploy:
Expand All @@ -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
7 changes: 7 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 8b488cd

Please sign in to comment.