mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
* First sloppy import of code from heyarne/reagent-movable * Consistently use "current queue" to avoid confusion * Update shadow-cljs, re-frame and debux * Solve styling problem when sorting table rows * Make sortable component more reusable * Refactor playlist to use a sorted-map * Make sure current queue is displayed again * Fix sorting when converting a shuffled into a linear playlist * Implement set-current-track * Implement song-move in playlist * Add autoprefixer * Implement drag and drop reordering in current queue * Fix broken dev sass build * Bump some dependencies * Move airsonic-ui.views.icon to bulma.icon * Implement reusable dropdown in bulma.dropdown * Immediately render reordered tracks, reimplement actions in album view * Use new song-table on search result page * Make song-table more reusable * Remove current song * Implement go to source in current queue * Remove unused song view
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
module.exports = function (config) {
|
|
const configuration = {
|
|
browsers: ['ChromeHeadless'],
|
|
// The tests are sometimes run before the tests were completely written
|
|
// to disc; this is a known problem unfortunately. This is a hack to at
|
|
// least keep the browsers connected so the tests are compiled and run
|
|
// again even if a developer isn't aware of this
|
|
autoWatchBatchDelay: 100,
|
|
browserNoActivityTimeout: 60 * 1000 * 10,
|
|
// 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)
|
|
}
|