Skip to content

Commit

Permalink
custom tests in Chrome on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
maxyh committed Apr 2, 2018
1 parent faa65b1 commit 1ef12a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ node_js:
- "8.9"
before_install: npm install -g npm
install: npm install
before_script:
- export CHROME_BIN=chromium-browser
before_script: # - export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
# - rackup # start a Web server
# - sleep 3 # give Web server some time to bind to sockets, etc
after_script:
- npm run coveralls
11 changes: 8 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ module.exports = config => {
reporters: ['mocha', 'coverage'],
colors: true,
browsers: [
'ChromeCanary',
'ChromeHeadless',
//'PhantomJS',
//'ChromeHeadless',
'Chrome_travis_ci',
//'Chrome',
//'ChromeCanary',
//'Safari',
//'Firefox',
//'PhantomJS'
],
logLevel: config.LOG_INFO,
client: {
Expand All @@ -112,6 +113,10 @@ module.exports = config => {
ChromeDebug: {
base: 'Chrome',
flags: ['--remote-debugging-port=9333']
},
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
browserConsoleLogOptions: {
Expand Down

0 comments on commit 1ef12a6

Please sign in to comment.