From: Evert Timberg Date: Sun, 14 Feb 2016 14:48:24 +0000 (-0500) Subject: Run coverage properly on the CI X-Git-Tag: v2.0.0~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2013%2Fhead;p=thirdparty%2FChart.js.git Run coverage properly on the CI --- diff --git a/karma.coverage.conf.js b/karma.coverage.conf.js index ba75445aa..dd70f701a 100644 --- a/karma.coverage.conf.js +++ b/karma.coverage.conf.js @@ -1,6 +1,6 @@ module.exports = function(config) { - config.set({ - browsers: ['Chrome', 'Firefox'], + var configuration = { + browsers: ['Firefox'], frameworks: ['browserify', 'jasmine'], @@ -24,5 +24,20 @@ module.exports = function(config) { { type: 'lcovonly', subdir: '.', file: 'lcov.info' } ] } - }); + }; + + // If on the CI, use the CI chrome launcher + if (process.env.TRAVIS) { + configuration.browsers.push('Chrome_travis_ci'); + configuration.customLaunchers = { + Chrome_travis_ci: { + base: 'Chrome', + flags: ['--no-sandbox'] + } + }; + } else { + configuration.browsers.push('Chrome'); + } + + config.set(configuration); }; \ No newline at end of file