Run coverage properly on the CI

This commit is contained in:
Evert Timberg 2016-02-14 09:48:24 -05:00
parent 38b2925e6c
commit 766b748a58

View 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);
};