Skip to content

Commit 1bbdc81

Browse files
authored
Merge pull request #464 from tobmaster/patch-1
Changed Pipeline to use ChromeHeadless and automatically switch to it in CI
2 parents ce1e130 + 1644f59 commit 1bbdc81

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

projects/angular-token/karma.conf.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,18 @@ module.exports = function (config) {
2525
colors: true,
2626
logLevel: config.LOG_INFO,
2727
autoWatch: true,
28-
browsers: ['Chrome'],
28+
browsers: process.env.CI
29+
? ['ChromeCi']
30+
: ['ChromeNoSandbox'],
2931

3032
//--- Custom Config for Travis CI ---
3133
customLaunchers: {
34+
ChromeCi: {
35+
base: 'ChromeHeadless',
36+
flags: [
37+
'--no-sandbox'
38+
]
39+
},
3240
ChromeNoSandbox: {
3341
base: 'Chrome',
3442
flags: ['--no-sandbox']

0 commit comments

Comments
 (0)