Skip to content

Commit

Permalink
Run coverage properly on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Feb 14, 2016
1 parent 38b2925 commit 766b748
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions karma.coverage.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function(config) {
config.set({
browsers: ['Chrome', 'Firefox'],
var configuration = {
browsers: ['Firefox'],

frameworks: ['browserify', 'jasmine'],

Expand All @@ -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);
};

0 comments on commit 766b748

Please sign in to comment.