From 1644f59dddf485fe2b33a41af1ab00ee2852690a Mon Sep 17 00:00:00 2001 From: Tobias Struckmeier Date: Wed, 22 Aug 2018 15:58:18 +0200 Subject: [PATCH] Using ChromeHeadless and automatically switch to it in CI I couldn't run it right now. So TRAVIS CI testrun must still be validated. --- projects/angular-token/karma.conf.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/angular-token/karma.conf.js b/projects/angular-token/karma.conf.js index 3731e3bf..2da502cc 100644 --- a/projects/angular-token/karma.conf.js +++ b/projects/angular-token/karma.conf.js @@ -25,10 +25,18 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], + browsers: process.env.CI + ? ['ChromeCi'] + : ['ChromeNoSandbox'], //--- Custom Config for Travis CI --- customLaunchers: { + ChromeCi: { + base: 'ChromeHeadless', + flags: [ + '--no-sandbox' + ] + }, ChromeNoSandbox: { base: 'Chrome', flags: ['--no-sandbox']