Skip to content

Commit 0ee5cb2

Browse files
committed
use grunt-coveralls instead of grunt-karma-coveralls
1 parent 2eedc8d commit 0ee5cb2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

gruntfile.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function (grunt) {
5353
},
5454
coverageReporter: {
5555
reporters: [
56-
{ type: 'lcov' },
56+
{ type: 'lcov', subdir: '.' },
5757
{ type: 'text-summary' }
5858
]
5959
}
@@ -71,9 +71,8 @@ module.exports = function (grunt) {
7171
},
7272

7373
coveralls: {
74-
options: {
75-
coverageDir: 'coverage/',
76-
force: true
74+
cover: {
75+
src: 'coverage/lcov.info'
7776
}
7877
}
7978

@@ -82,7 +81,7 @@ module.exports = function (grunt) {
8281
// load npm tasks
8382
grunt.loadNpmTasks('grunt-contrib-jshint')
8483
grunt.loadNpmTasks('grunt-karma')
85-
grunt.loadNpmTasks('grunt-karma-coveralls')
84+
grunt.loadNpmTasks('grunt-coveralls')
8685

8786
// load custom tasks
8887
require('./build/grunt-tasks/build')(grunt)
@@ -97,4 +96,6 @@ module.exports = function (grunt) {
9796
grunt.registerTask('ci', ['jshint', 'cover', 'coveralls', 'build', 'casper', 'sauce'])
9897
grunt.registerTask('default', ['jshint', 'build', 'test'])
9998

99+
grunt.registerTask('debug', ['coveralls', 'build'])
100+
100101
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"casperjs": "^1.1.0-beta3",
2525
"grunt": "^0.4.5",
2626
"grunt-contrib-jshint": "^0.10.0",
27+
"grunt-coveralls": "^1.0.0",
2728
"grunt-karma": "^0.8.3",
28-
"grunt-karma-coveralls": "^2.5.3",
2929
"jshint-stylish": "^0.3.0",
3030
"karma": "^0.12.31",
3131
"karma-chrome-launcher": "^0.1.7",

0 commit comments

Comments
 (0)