Skip to content

Commit 1d7d5a7

Browse files
committed
add coveralls
1 parent 2a151f0 commit 1d7d5a7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

gruntfile.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ module.exports = function (grunt) {
8888
sauce3: {
8989
options: sauceConfig.batch3
9090
}
91+
},
92+
93+
coveralls: {
94+
options: {
95+
coverage_dir: 'coverage/',
96+
force: true
97+
}
9198
}
9299

93100
})
@@ -96,6 +103,7 @@ module.exports = function (grunt) {
96103
grunt.loadNpmTasks('grunt-contrib-jshint')
97104
grunt.loadNpmTasks('grunt-contrib-watch')
98105
grunt.loadNpmTasks('grunt-karma')
106+
grunt.loadNpmTasks('grunt-karma-coveralls')
99107

100108
// load custom tasks
101109
grunt.file.recurse('grunt/tasks', function (path) {
@@ -106,7 +114,7 @@ module.exports = function (grunt) {
106114
grunt.registerTask('cover', ['karma:coverage'])
107115
grunt.registerTask('test', ['unit', 'cover', 'casper'])
108116
grunt.registerTask('sauce', ['karma:sauce1', 'karma:sauce2', 'karma:sauce3'])
109-
grunt.registerTask('ci', ['jshint', 'test', 'sauce'])
117+
grunt.registerTask('ci', ['jshint', 'test', 'coveralls', 'sauce'])
110118
grunt.registerTask('default', ['jshint', 'test', 'build'])
111119

112120
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"grunt-contrib-jshint": "^0.10.0",
2828
"grunt-contrib-watch": "^0.6.1",
2929
"grunt-karma": "^0.8.3",
30+
"grunt-karma-coveralls": "^2.5.2",
3031
"jshint-stylish": "^0.3.0",
3132
"karma": "^0.12.16",
3233
"karma-chrome-launcher": "^0.1.4",

0 commit comments

Comments
 (0)