Skip to content

Commit 888b445

Browse files
authored
Merge pull request #440 from Kitware/fix-travis
chore(travis): Try to fix chrome headless issue
2 parents 2779ac0 + 3be11a3 commit 888b445

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

karma.conf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ module.exports = function init(config) {
8282
useIframe: true,
8383
},
8484

85+
customLaunchers: {
86+
ChromeHeadlessNoSandbox: {
87+
base: 'ChromeHeadless',
88+
flags: ['--no-sandbox'],
89+
},
90+
},
8591
// browserNoActivityTimeout: 600000,
8692
// browserDisconnectTimeout: 600000,
8793

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"build:debug": "webpack --progress --colors --display-modules",
5858
"build:release": "npm run build -- -p",
5959
"test": "karma start ./karma.conf.js",
60-
"test:travis": "karma start ./karma.conf.js --browsers ChromeHeadless --single-run",
60+
"test:travis": "karma start ./karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run",
6161
"test:debug": "karma start ./karma.conf.js --no-single-run",
6262
"commit": "git cz",
6363
"semantic-release": "semantic-release pre && npm publish && semantic-release post"

0 commit comments

Comments
 (0)