OLD | NEW |
1 // Karma configuration | 1 // Karma configuration |
2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) | 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) |
3 | 3 |
4 module.exports = function(config) { | 4 module.exports = function(config) { |
5 config.set({ | 5 var configuration = { |
6 | 6 |
7 // base path that will be used to resolve all patterns (eg. files, exclude) | 7 // base path that will be used to resolve all patterns (eg. files, exclude) |
8 basePath: '', | 8 basePath: '', |
9 | 9 |
10 // frameworks to use | 10 // frameworks to use |
11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
12 frameworks: ['mocha', 'requirejs', 'chai'], | 12 frameworks: ['mocha', 'requirejs', 'chai'], |
13 | 13 |
14 // list of files / patterns to load in the browser | 14 // list of files / patterns to load in the browser |
15 files: [ | 15 files: [ |
(...skipping 27 matching lines...) Expand all Loading... |
43 reporters: ['progress'], | 43 reporters: ['progress'], |
44 | 44 |
45 // web server port | 45 // web server port |
46 port: 9876, | 46 port: 9876, |
47 | 47 |
48 // enable / disable colors in the output (reporters and logs) | 48 // enable / disable colors in the output (reporters and logs) |
49 colors: true, | 49 colors: true, |
50 | 50 |
51 // level of logging | 51 // level of logging |
52 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG | 52 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG |
53 logLevel: config.LOG_INFO, | 53 logLevel: config.LOG_DEBUG, |
54 | 54 |
55 // enable / disable watching file and executing tests whenever any file chan
ges | 55 // enable / disable watching file and executing tests whenever any file chan
ges |
56 autoWatch: false, | 56 autoWatch: false, |
57 | 57 |
58 // start these browsers | 58 // start these browsers |
59 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc
her | 59 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc
her |
60 | 60 |
61 // FIXME(vsm): Once harmony is on by default, we can simply add the followin
g: | 61 // FIXME(vsm): Once harmony is on by default, we can simply add the followin
g: |
62 // browsers: ['Chrome'], | 62 // browsers: ['Chrome'], |
63 // and remove the custom launchers. | 63 // and remove the custom launchers. |
(...skipping 11 matching lines...) Expand all Loading... |
75 chrome_travis: { | 75 chrome_travis: { |
76 base: 'Chrome', | 76 base: 'Chrome', |
77 flags: ['--no-sandbox --js-flags="--harmony-arrow-functions --harmony-cl
asses --harmony-computed-property-names"'] | 77 flags: ['--no-sandbox --js-flags="--harmony-arrow-functions --harmony-cl
asses --harmony-computed-property-names"'] |
78 }, | 78 }, |
79 }, | 79 }, |
80 browsers: ['chrome_harmony'], | 80 browsers: ['chrome_harmony'], |
81 | 81 |
82 // Continuous Integration mode | 82 // Continuous Integration mode |
83 // if true, Karma captures browsers, runs the tests and exits | 83 // if true, Karma captures browsers, runs the tests and exits |
84 singleRun: false, | 84 singleRun: false, |
85 }); | 85 }; |
| 86 |
| 87 if (process.env.TRAVIS) { |
| 88 configuration.browsers = ['chrome_travis']; |
| 89 } |
| 90 |
| 91 config.set(configuration); |
86 }; | 92 }; |
OLD | NEW |