forked from angular/material
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma-ci.conf.js
More file actions
36 lines (28 loc) · 908 Bytes
/
karma-ci.conf.js
File metadata and controls
36 lines (28 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var baseKarma = require('./karma.conf.js');
module.exports = function(config) {
baseKarma(config);
// Override defaults with custom CI settings
config.set({
colors: false,
singleRun:true,
autoWatch: false,
logLevel: config.LOG_DEBUG,
// Only launch one browser at a time since doing multiple can cause disconnects/issues
concurrency: 1,
browsers: ['PhantomJS', 'Firefox'],
client: {
// Do not clear the context as this can cause reload failures with Jasmine
clearContext:false
},
// This is the new content for your travis-ci configuration test
// Custom launcher for Travis-CI
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
}
});
var browsers = process.env.TRAVIS ? ['Chrome_travis_ci'] : [];
config.browsers = browsers.concat(config.browsers);
};