Permalink
Browse files

add coverall

  • Loading branch information...
i5ting committed Jun 26, 2015
1 parent a7b023e commit 0532c8f91093c24f0cbad08327d47d357eeae9a8
Showing with 7 additions and 2 deletions.
  1. +2 −0 .coveralls.yml
  2. +1 −1 .travis.yml
  3. +4 −1 package.json
View
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: 99UNur6O7ksBqiwgg1NG1sSFhmu78A0t7
View
@@ -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
View
@@ -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",
@@ -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"
}

0 comments on commit 0532c8f

Please sign in to comment.