mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
add coveralls
This commit is contained in:
parent
2a151f0646
commit
1d7d5a7714
10
gruntfile.js
10
gruntfile.js
@ -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'])
|
||||
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user