]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Run coverage properly on the CI 2013/head
authorEvert Timberg <evert.timberg@gmail.com>
Sun, 14 Feb 2016 14:48:24 +0000 (09:48 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 14 Feb 2016 14:48:24 +0000 (09:48 -0500)
karma.coverage.conf.js

index ba75445aad6dd1a95318669b0f0906f4be3ecb95..dd70f701ac65b61cd71bb0b1207fee1ce196c7c3 100644 (file)
@@ -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