Skip to content

Commit

Permalink
Custom chromium headless config for windows ?
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalourdio committed Oct 28, 2018
1 parent aadaa3f commit 3516222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then export PATH=$HOME/.yarn/bin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew cask install chromium; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install Firefox; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install chromium; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install chromium --pre -y; fi

script:
- yarn lint
Expand Down
6 changes: 5 additions & 1 deletion src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ module.exports = function (config) {
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: [ '-headless' ],
flags: ['-headless'],
},
ChromiumHeadlessNoSandbox: {
base: 'ChromiumHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false,
browserNoActivityTimeout: 100000
Expand Down

0 comments on commit 3516222

Please sign in to comment.