Skip to content

Commit

Permalink
Add --no-sandbox to ChromeHeadless execution for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lisathesecond committed Mar 15, 2018
1 parent 75c0fc6 commit cbfce58
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ module.exports = function (config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [process.env.NODE_WATCH ? 'Chrome' : 'ChromeHeadless'],
browsers: process.env.NODE_WATCH ? ['Chrome'] : ['ChromeHeadlessNoSandbox'],

customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},

// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
Expand Down

0 comments on commit cbfce58

Please sign in to comment.