Skip to content

Commit a869257

Browse files
committed
CI: Add Chrome custom Launcher for Travis
1 parent b46ccb7 commit a869257

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

karma.conf.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ module.exports = function (config) {
4343
suppressSkipped: true, // do not print information about skipped tests
4444
showSpecTiming: false // print the time elapsed for each spec
4545
},
46+
customLaunchers: {
47+
Chrome_travis_ci: {
48+
base: 'Chrome',
49+
flags: ['--no-sandbox']
50+
}
51+
},
4652
port: 9876,
4753
colors: true,
4854
logLevel: config.LOG_INFO,
@@ -51,4 +57,8 @@ module.exports = function (config) {
5157
singleRun: false,
5258
concurrency: Infinity
5359
});
60+
61+
if (process.env.TRAVIS) {
62+
config.browsers = ['Chrome_travis_ci'];
63+
}
5464
};

0 commit comments

Comments
 (0)