Skip to content

Commit

Permalink
Fix CI Tests (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier authored and jasonslyvia committed Mar 12, 2018
1 parent d4fde73 commit 8c3a8ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ language: node_js
node_js:
- "6"
before_script:
- "export DISPLAY=:99.0"
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- "sh -e /etc/init.d/xvfb start"
- sleep 3
addons:
chrome: stable
script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Chrome --single-run --no-auto-watch --capture-timeout 300000"
script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Chrome_travis_ci --single-run --no-auto-watch --capture-timeout 300000"
6 changes: 6 additions & 0 deletions test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ module.exports = function (config) {
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,

customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
Expand Down

0 comments on commit 8c3a8ec

Please sign in to comment.