module.exports = function(config) {
- config.set({
- browsers: ['Chrome', 'Firefox'],
+ var configuration = {
+ browsers: ['Firefox'],
frameworks: ['browserify', 'jasmine'],
{ 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