mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Run coverage properly on the CI
This commit is contained in:
parent
38b2925e6c
commit
766b748a58
@ -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);
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user