Skip to content

Commit

Permalink
chore(travis): use headless Chrome in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gkalpak committed Oct 30, 2018
1 parent 398c09c commit 5ff1cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ cache:
directories:
- "$HOME/.npm"

before_install:
- export DISPLAY=":99.0"
- sh -e /etc/init.d/xvfb start

install:
- npm install

script:
- npm run test-single-run
- (npm start > /dev/null &) && npm run protractor
- npm run test-single-run -- --browsers ChromeHeadless
- (npm start > /dev/null &) && npm run protractor -- --capabilities.chromeOptions.args headless
2 changes: 1 addition & 1 deletion e2e-tests/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.config = {
],

capabilities: {
'browserName': 'chrome'
browserName: 'chrome'
},

baseUrl: 'http://localhost:8000/',
Expand Down

0 comments on commit 5ff1cb4

Please sign in to comment.