add coveralls

This commit is contained in:
Evan You 2014-09-26 13:33:03 -04:00
parent 2a151f0646
commit 1d7d5a7714
2 changed files with 10 additions and 1 deletions

View File

@ -88,6 +88,13 @@ module.exports = function (grunt) {
sauce3: {
options: sauceConfig.batch3
}
},
coveralls: {
options: {
coverage_dir: 'coverage/',
force: true
}
}
})
@ -96,6 +103,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-karma')
grunt.loadNpmTasks('grunt-karma-coveralls')
// load custom tasks
grunt.file.recurse('grunt/tasks', function (path) {
@ -106,7 +114,7 @@ module.exports = function (grunt) {
grunt.registerTask('cover', ['karma:coverage'])
grunt.registerTask('test', ['unit', 'cover', 'casper'])
grunt.registerTask('sauce', ['karma:sauce1', 'karma:sauce2', 'karma:sauce3'])
grunt.registerTask('ci', ['jshint', 'test', 'sauce'])
grunt.registerTask('ci', ['jshint', 'test', 'coveralls', 'sauce'])
grunt.registerTask('default', ['jshint', 'test', 'build'])
}

View File

@ -27,6 +27,7 @@
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-karma": "^0.8.3",
"grunt-karma-coveralls": "^2.5.2",
"jshint-stylish": "^0.3.0",
"karma": "^0.12.16",
"karma-chrome-launcher": "^0.1.4",