Skip to content

Commit

Permalink
Add grunt-coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
1syo committed Jul 3, 2014
1 parent 74dc0f9 commit 37348e3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
node_modules
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ before_script: mkdir coverage
script:
- grunt test
- grunt coffeelint
after_script: cat ./coverage/lcov.info| ./node_modules/coveralls/bin/coveralls.js
after_script: grunt coveralls
notifications:
email: false
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';

module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-release');
grunt.loadNpmTasks('grunt-coffeelint');
grunt.loadNpmTasks('grunt-coveralls');

grunt.initConfig({
mochaTest: {
Expand Down Expand Up @@ -39,6 +39,12 @@ module.exports = function(grunt) {
options: {
configFile: 'coffeelint.json'
}
},
coveralls: {
options: {
src: "coverage/lcov.info",
force: false
}
}
});

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"grunt-coffeelint": "*",
"mocha-lcov-reporter": "*",
"blanket": "*",
"coveralls": "*"
"coveralls": "*",
"grunt-coveralls": "*"
},

"main": "index.coffee",
Expand Down

0 comments on commit 37348e3

Please sign in to comment.