mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
34 lines
970 B
JavaScript
34 lines
970 B
JavaScript
module.exports = function (config) {
|
|
const configuration = {
|
|
browsers: ['ChromeHeadless'],
|
|
// The directory where the output file lives
|
|
basePath: 'public/test',
|
|
// The file itself
|
|
files: ['ci.js'],
|
|
frameworks: ['cljs-test'],
|
|
plugins: [
|
|
'karma-cljs-test',
|
|
'karma-chrome-launcher',
|
|
'karma-notify-reporter' // reporters are set in package.json
|
|
],
|
|
colors: true,
|
|
logLevel: config.LOG_INFO,
|
|
client: {
|
|
args: ["shadow.test.karma.init"]
|
|
},
|
|
// configure travis-ci; based on this: https://stackoverflow.com/questions/19255976/how-to-make-travis-execute-angular-tests-on-chrome-please-set-env-variable-chr#25661593
|
|
customLaunchers: {
|
|
ChromeHeadlessCI: {
|
|
base: 'ChromeHeadless',
|
|
flags: ['--no-sandbox', '--headless', '--nogpu']
|
|
}
|
|
}
|
|
}
|
|
|
|
if (process.env.TRAVIS || process.env.CI) {
|
|
configuration.browsers = ['ChromeHeadlessCI']
|
|
}
|
|
|
|
|
|
config.set(configuration)
|
|
}
|