Skip to content

Commit

Permalink
add coverall
Browse files Browse the repository at this point in the history
  • Loading branch information
i5ting committed Jun 26, 2015
1 parent a7b023e commit 0532c8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: 99UNur6O7ksBqiwgg1NG1sSFhmu78A0t7
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_js:
- "0.12"
- "0.11"
- "0.10"
script: ./node_modules/.bin/mocha
script: ./node_modules/.bin/mocha -u bdd && npm run cov
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "npm publish .",
"test": "./node_modules/.bin/gulp"
"test": "./node_modules/.bin/gulp",
"cov":"./node_modules/.bin/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 @@ -23,9 +24,11 @@
"license": "MIT",
"devDependencies": {
"chai": "^2.3.0",
"coveralls": "^2.11.2",
"gulp": "^3.9.0",
"gulp-mocha": "^2.1.2",
"gulp-watch": "^4.2.4",
"istanbul": "^0.3.16",
"mocha": "^2.2.5",
"mongoose": "^4.0.4"
}
Expand Down

0 comments on commit 0532c8f

Please sign in to comment.