Skip to content

Commit

Permalink
Added coverall badge
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Jan 7, 2014
1 parent 6276280 commit 2f88cc1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ lib-cov
*.out
*.pid
*.gz
.DS_Store
coverage

pids
logs
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '0.10'
before_script:
- 'npm i -g gulp'
after_script:
- npm run coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [gulp](https://github.com/gulpjs/gulp)-batch [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]
# [gulp](https://github.com/gulpjs/gulp)-batch [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status](https://coveralls.io/repos/floatdrop/gulp-batch/badge.png)](https://coveralls.io/r/floatdrop/gulp-batch) [![Dependency Status][depstat-image]][depstat-url]
> Event batcher for gulp-watch'er.
This is problem solver for [this issue](https://github.com/gulpjs/gulp/issues/80) with [gulp.watch](https://github.com/gulpjs/gulp#gulpwatchglob-cb) and [gulp-mocha](https://github.com/sindresorhus/gulp-mocha).
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"mocha"
],
"scripts": {
"test": "gulp mocha"
"test": "istanbul test _mocha --report html -- test/*.js --reporter spec",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand All @@ -26,6 +27,10 @@
},
"devDependencies": {
"gulp": "~3.2.2",
"coveralls": "~2.6.0",
"mocha": "~1.14.0",
"mocha-lcov-reporter": "0.0.1",
"istanbul": "~0.1.44",
"gulp-mocha": "~0.2.0",
"espower-loader": "~0.3.1",
"power-assert": "~0.3.1",
Expand Down

0 comments on commit 2f88cc1

Please sign in to comment.