Skip to content

Commit

Permalink
Add coveralls support.
Browse files Browse the repository at this point in the history
  • Loading branch information
nporteschaikin committed Mar 24, 2015
1 parent 0be731d commit 30a84aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
before_script:
- git config --global user.email "dev@carrotcreative.com"
- git config --global user.name "Carrot Creative"
after_script:
- npm run coveralls
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@
"chai": "^2.1.2",
"mockery": "^1.4.0",
"errno": "^0.1.1",
"istanbul": "0.3.x"
"istanbul": "0.3.x",
"coveralls": "^2.11.2"
},
"scripts": {
"test": "./node_modules/.bin/mocha test/test.js",
"coverage": "./node_modules/istanbul/lib/cli.js cover _mocha --report html -- -R spec && open coverage/index.html"
"test": "mocha",
"coverage": "istanbul cover _mocha --report html -- -R spec",
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"engines": {
"node": ">=0.10.0"
Expand Down

0 comments on commit 30a84aa

Please sign in to comment.