UNPKG

1.08 kBJavaScriptView Raw
1module.exports = function(config) {
2 var detectBrowsers = {
3 enabled: false,
4 usePhantomJS: false
5 };
6
7 // On Travis CI, we can only run in Firefox and Chrome; so, enforce that.
8 if (process.env.TRAVIS) {
9 config.browsers = ['Firefox', 'travisChrome'];
10 }
11
12 // If no browsers are specified, we enable `karma-detect-browsers`
13 // this will detect all browsers that are available for testing
14 if (!config.browsers.length) {
15 detectBrowsers.enabled = true;
16 }
17
18 config.set({
19 basePath: '..',
20 frameworks: ['qunit', 'detectBrowsers'],
21 files: [
22 'node_modules/video.js/dist/video-js.css',
23
24 'node_modules/es5-shim/es5-shim.js',
25 'node_modules/sinon/pkg/sinon.js',
26 'node_modules/video.js/dist/video.js',
27 'test/dist/bundle.js'
28 ],
29 customLaunchers: {
30 travisChrome: {
31 base: 'Chrome',
32 flags: ['--no-sandbox']
33 }
34 },
35 detectBrowsers: detectBrowsers,
36 reporters: ['dots'],
37 port: 9876,
38 colors: true,
39 autoWatch: false,
40 singleRun: true,
41 concurrency: Infinity
42 });
43};