Skip to content

Commit

Permalink
adding coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hiller committed Feb 18, 2014
1 parent 00bb8e8 commit beb3ae2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Gruntfile.js
Expand Up @@ -37,6 +37,12 @@ module.exports = function (grunt) {
}
},

coveralls: {
options: {
coverage_dir: 'coverage/'
}
},

bower: {
install: {},
options: {
Expand Down Expand Up @@ -72,8 +78,10 @@ module.exports = function (grunt) {

karma: {
options: {
configFile: 'karma.conf.js',
singleRun: true
configFile: 'karma.conf.js'
},
main: {
singleRun: true
}
}

Expand All @@ -82,7 +90,7 @@ module.exports = function (grunt) {
require('matchdep').filterDev(
['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);

grunt.registerTask('test', ['jshint', 'bower', 'karma']);
grunt.registerTask('test', ['jshint', 'bower', 'karma', 'coveralls']);
grunt.registerTask('docs', ['clean', 'jsdoc']);
grunt.registerTask('build', ['uglify', 'jquerymanifest']);
grunt.registerTask('default', ['test', 'build', 'docs']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -24,7 +24,8 @@
"karma-sinon-chai": "~0.1.4",
"karma-coverage": "~0.2.0",
"karma-osx-reporter": "0.0.4",
"karma-story-reporter": "~0.2.2"
"karma-story-reporter": "~0.2.2",
"grunt-karma-coveralls": "~2.3.0"
},
"homepage": "http://boneskull.github.io/jquery.preempt",
"description": "Takes legacy inline JS (i.e. \"onclick\" and \"href='javascript:...'\") and creates event handler(s) to be run around the inlined code.",
Expand Down

0 comments on commit beb3ae2

Please sign in to comment.