diff --git a/src/karma.conf.js b/src/karma.conf.js index 76d7ca9..30f4620 100644 --- a/src/karma.conf.js +++ b/src/karma.conf.js @@ -1,6 +1,8 @@ // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html +const chromeBrowser = process.env.CIRCLE_BUILD_NUM ? 'Chrome' : 'Chromium' + module.exports = function (config) { config.set({ basePath: '', @@ -25,7 +27,13 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chromium'], + browsers: [chromeBrowser], + customLaunchers: { + ChromeHeadlessCI: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + }, singleRun: false }); };