File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,5 @@ before_script:
12
12
- npm run build
13
13
script :
14
14
- npm run test
15
+ after_success :
16
+ - npm run report-coverage
Original file line number Diff line number Diff line change @@ -45,8 +45,10 @@ module.exports = function (config) {
45
45
autoWatch : false ,
46
46
47
47
coverageReporter : {
48
- type : 'html' ,
49
- dir : 'tests/coverage'
48
+ // specify a common output directory
49
+ dir : 'tests/coverage' ,
50
+ type : 'lcov' ,
51
+ subdir : '.'
50
52
} ,
51
53
52
54
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"commit" : " git-cz" ,
16
16
"build" : " grunt" ,
17
- "test" : " grunt test"
17
+ "test" : " grunt test" ,
18
+ "report-coverage" : " cat ./tests/coverage/lcov.info | codecov"
18
19
},
19
20
"peerDependencies" : {
20
21
"angular" : " ^1.2.x"
25
26
"chai" : " ^3.4.1" ,
26
27
"chai-as-promised" : " ^5.1.0" ,
27
28
"chai-things" : " ^0.2.0" ,
29
+ "codecov.io" : " ^0.1.6" ,
28
30
"commitizen" : " ^2.4.6" ,
29
31
"cz-conventional-changelog" : " ^1.1.5" ,
30
32
"grunt" : " ~0.4.2" ,
You can’t perform that action at this time.
0 commit comments