Skip to content

Commit aee7e92

Browse files
committed
fix(ci): pass nosandbox when running headless for travis-ci
see: https://docs.travis-ci.com/user/chrome
1 parent 64bebce commit aee7e92

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

karma.conf.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ module.exports = function (config) {
2727
colors: true,
2828
logLevel: config.LOG_INFO,
2929
autoWatch: true,
30-
browsers: ['Chrome'],
31-
singleRun: false
30+
browsers: ['Chrome', 'ChromeHeadlessNoSandbox'],
31+
singleRun: false,
32+
customLaunchers: {
33+
ChromeHeadlessNoSandbox: {
34+
base: 'ChromeHeadless',
35+
flags: ['--no-sandbox']
36+
}
37+
}
3238
});
3339
};

0 commit comments

Comments
 (0)