Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit fb247cd

Browse files
committed
teach travis chrome
1 parent 9ee4f5c commit fb247cd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ node_js:
66
- "0.12"
77
- "0.10"
88
before_install:
9+
- export CHROME_BIN=chromium-browser
910
- export DISPLAY=:99.0
1011
- sh -e /etc/init.d/xvfb start

karma.conf.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ module.exports = function(config) {
5656

5757
// start these browsers
5858
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
59-
browsers: ['Chrome', 'Firefox'],
60-
59+
browsers: [process.env.TRAVIS ? 'Chrome_travis_ci' : 'Chrome', 'Firefox'],
60+
customLaunchers: {
61+
Chrome_travis_ci: {
62+
base: 'Chrome',
63+
flags: ['--no-sandbox']
64+
}
65+
},
6166

6267
// Continuous Integration mode
6368
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)