1 | module.exports = function(config) {
|
2 | var detectBrowsers = {
|
3 | enabled: false,
|
4 | usePhantomJS: false
|
5 | };
|
6 |
|
7 |
|
8 | if (process.env.TRAVIS) {
|
9 | config.browsers = ['Firefox', 'travisChrome'];
|
10 | }
|
11 |
|
12 |
|
13 |
|
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 | };
|