File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
+
2
3
node_js :
3
- - ' 4.2'
4
4
- ' stable'
5
- script : npm run test:single
5
+
6
+ script : npm test
7
+
6
8
before_script :
7
- - npm install
9
+ - npm install
10
+
11
+ after_success :
12
+ - npm run codecov
Original file line number Diff line number Diff line change @@ -80,8 +80,13 @@ module.exports = function(config) {
80
80
81
81
// optionally, configure the reporter
82
82
coverageReporter : {
83
- type : 'html' ,
84
- dir : 'coverage/'
83
+ // specify a common output directory
84
+ dir : 'coverage/' ,
85
+ reporters : [
86
+ // reporters not supporting the `file` property
87
+ { type : 'html' , subdir : 'report-html' } ,
88
+ { type : 'lcov' , subdir : 'report-lcov' }
89
+ ]
85
90
}
86
91
} )
87
92
}
Original file line number Diff line number Diff line change 32
32
},
33
33
"devDependencies" : {
34
34
"browserify" : " ^13.0.0" ,
35
+ "codecov.io" : " ^0.1.6" ,
35
36
"gulp" : " ^3.9.1" ,
36
37
"gulp-autoprefixer" : " ^3.1.0" ,
37
38
"gulp-bump" : " ^1.0.0" ,
58
59
"phantomjs-prebuilt" : " ^2.1.5"
59
60
},
60
61
"scripts" : {
61
- "test" : " karma start" ,
62
- "test:single" : " ./node_modules/.bin/karma start --single-run --browsers PhantomJS"
62
+ "test" : " karma start --single-run --browsers PhantomJS" ,
63
+ "test:watch" : " karma start" ,
64
+ "codecov" : " cat coverage/*/lcov.info | codecov"
63
65
}
64
66
}
You can’t perform that action at this time.
0 commit comments