mirror of https://github.com/ColorlibHQ/gentelella
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
860 B
43 lines
860 B
module.exports = function(config) {
|
|
var configuration = {
|
|
browsers: ['Firefox'],
|
|
|
|
frameworks: ['browserify', 'jasmine'],
|
|
|
|
preprocessors: {
|
|
'src/**/*.js': ['browserify']
|
|
},
|
|
browserify: {
|
|
debug: true,
|
|
transform: [['browserify-istanbul', {
|
|
instrumenterConfig: {
|
|
embed: true
|
|
}
|
|
}]]
|
|
},
|
|
|
|
reporters: ['progress', 'coverage'],
|
|
coverageReporter: {
|
|
dir: 'coverage/',
|
|
reporters: [
|
|
{ type: 'html', subdir: 'report-html' },
|
|
{ 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);
|
|
}; |