File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ before_script:
30
30
- sh -e /etc/init.d/xvfb start # Run xvfb to fake a display (muhaha ...)
31
31
script :
32
32
- npm run gulp test && npm run gulp build--publish # First test, then build for npm publish
33
+ after_success :
34
+ - npm run coveralls
33
35
34
36
before_deploy : # Automatic semantic release
35
37
- git config --global user.name "dominique-mueller"; # Setup git
Original file line number Diff line number Diff line change 3
3
[ ![ dev dependency status] ( https://img.shields.io/david/dev/dominique-mueller/angular-notifier.svg?maxAge=2592000&style=flat-square )] ( https://david-dm.org/dominique-mueller/angular-notifier?type=dev )
4
4
[ ![ peer dependency status] ( https://img.shields.io/david/peer/dominique-mueller/angular-notifier.svg?maxAge=2592000&style=flat-square )] ( https://david-dm.org/dominique-mueller/angular-notifier?type=peer )
5
5
[ ![ travis ci build status] ( https://img.shields.io/travis/dominique-mueller/angular-notifier/master.svg?maxAge=2592000&style=flat-square )] ( https://travis-ci.org/dominique-mueller/angular-notifier )
6
+ [ ![ Codecov] ( https://img.shields.io/codecov/c/github/dominique-mueller/angular-notifier/master.svg?maxAge=2592000&style=flat-square )] ( )
6
7
[ ![ license] ( https://img.shields.io/npm/l/angular-notifier.svg?maxAge=2592000&style=flat-square )] ( https://github.com/dominique-mueller/angular-notifier/LICENSE )
7
8
8
9
# angular-notifier
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ module.exports = function( config ) {
45
45
{
46
46
type : 'html' , // For viewing in the browser
47
47
subdir : '.' // Prevent browser-specific folder naming
48
+ } ,
49
+ {
50
+ type : 'lcovonly' , // For the GitHub badge
51
+ subdir : '.'
48
52
}
49
53
]
50
54
} ,
Original file line number Diff line number Diff line change 35
35
"module" : " index.js" ,
36
36
"typings" : " index.d.ts" ,
37
37
"scripts" : {
38
- "gulp" : " gulp"
38
+ "gulp" : " gulp" ,
39
+ "coveralls" : " cat ./test-coverage/ts/lcov.info | coveralls"
39
40
},
40
41
"peerDependencies" : {
41
42
"@angular/core" : " 2.x" ,
55
56
"conventional-github-releaser" : " 1.1.x" ,
56
57
"conventional-recommended-bump" : " 0.3.x" ,
57
58
"core-js" : " 2.4.x" ,
59
+ "coveralls" : " 2.11.x" ,
58
60
"del" : " 2.2.x" ,
59
61
"gulp" : " github:gulpjs/gulp#4.0" ,
60
62
"gulp-autoprefixer" : " 3.1.x" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ gulp.task( 'ts:test--coverage', () => {
29
29
reports : {
30
30
'json' : 'test-coverage/ts/coverage.json' ,
31
31
'html' : 'test-coverage/ts/' , // For viewing in the browser
32
+ 'lcovonly' : 'test-coverage/ts/lcov.info' , // For the GitHub badge
32
33
'text-summary' : null // Print coverage summary to the console
33
34
}
34
35
} ) ) ;
You can’t perform that action at this time.
0 commit comments