forked from FirebaseExtended/angularfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomatic_karma.conf.js
59 lines (52 loc) · 1.32 KB
/
automatic_karma.conf.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Configuration file for Karma
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
browsers: ['Chrome'],
reporters: ['spec', 'failed', 'coverage'],
autowatch: false,
singleRun: true,
preprocessors: {
"../src/!(lib)/**/*.js": "coverage",
"./fixtures/**/*.json": "html2js"
},
coverageReporter: {
reporters: [
{
// Nice HTML reports on developer machines, but not on Travis
type: process.env.TRAVIS ? "lcovonly" : "lcov",
dir: "coverage",
subdir: "."
},
{
type: "text-summary"
}
]
},
files: [
'../node_modules/angular/angular.js',
'../node_modules/angular-mocks/angular-mocks.js',
'../node_modules/firebase/firebase.js',
'lib/**/*.js',
'../src/module.js',
'../src/**/*.js',
'mocks/**/*.js',
"fixtures/**/*.json",
'initialize.js',
'unit/**/*.spec.js'
]
});
var configuration = {
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
};
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}
config.set(configuration);
};