Skip to content

Commit

Permalink
Merge pull request #132 from chaijs/fix-karma-chrome
Browse files Browse the repository at this point in the history
chore: launch Chrome without sandbox in Travis
  • Loading branch information
astorije authored Jan 16, 2018
2 parents 50cf845 + 4f9f96f commit dd38626
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (process.env.SAUCE_USERNAME) {
} else if (process.env.APPVEYOR) {
browsers = [ 'Firefox', 'ChromeHeadless', 'IE' ];
} else if (process.env.TRAVIS) {
browsers = [ 'FirefoxHeadless', 'ChromeHeadless' ];
browsers = [ 'FirefoxHeadless', 'ChromeHeadlessNoSandbox' ];
} else if (!process.env.KARMA_MANUAL) {
browsers = [];
frameworks.push('detectBrowsers');
Expand Down Expand Up @@ -52,6 +52,10 @@ module.exports = function configureKarma(config) {
dir: 'coverage',
},
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: [ '--no-sandbox' ],
},
FirefoxHeadless: {
base: 'Firefox',
flags: [ '-headless' ],
Expand Down

0 comments on commit dd38626

Please sign in to comment.