Skip to content

Commit 05f27d0

Browse files
author
hs
committed
added coveralls
1 parent 8d6f336 commit 05f27d0

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
script: grunt build
88
- stage: test
99
script: grunt test
10+
script: grunt coveralls
1011
cache:
1112
directories:
1213
- "node_modules"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"grunt-contrib-less": "^2.0.0",
3939
"grunt-contrib-uglify": "^2.0.0",
4040
"grunt-contrib-watch": "^1.1.0",
41+
"grunt-coveralls":"^2.0.0",
4142
"grunt-ts": "^6.0.0-beta.19",
4243
"grunt-tslint": "^4.0.1",
4344
"grunt-typedoc": "^0.2.4",

sharedGruntConfig.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
2323
grunt.loadNpmTasks('grunt-contrib-clean');
2424
grunt.loadNpmTasks('grunt-contrib-copy');
2525
grunt.loadNpmTasks('grunt-contrib-less');
26+
grunt.loadNpmTasks('grunt-coveralls');
2627
grunt.loadNpmTasks('grunt-typedoc');
2728
grunt.loadNpmTasks('grunt-tslint');
2829
grunt.loadNpmTasks('grunt-ts');
@@ -252,6 +253,14 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
252253
}
253254
},
254255

256+
coveralls: {
257+
options: { force: false },
258+
your_target: {
259+
// LCOV coverage file (can be string, glob or array)
260+
src: 'docs/data/src/${lib}/coverage/lcov.info',
261+
options: {}
262+
},
263+
},
255264
watch: {
256265
dependencies: {
257266
files: dependencies.map(d => `./node_modules/${d.toLowerCase()}/index.js`),

0 commit comments

Comments
 (0)