Skip to content

Commit

Permalink
build: run coveralls for unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonf committed May 24, 2016
1 parent 0c820c5 commit 8d7d78a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: DvrDb09a8vhPlVf6DT4cGBjcFOi6DfZN1
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ script:
- npm run regtest
- npm run test
- npm run jshint
after_success:
- npm run coveralls
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"test": "mocha -R spec --recursive",
"regtest": "./scripts/regtest",
"jshint": "jshint --reporter=node_modules/jshint-stylish ./lib",
"coverage": "istanbul cover _mocha -- --recursive"
"coverage": "istanbul cover _mocha -- --recursive",
"coveralls": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"tags": [
"bitcoin",
Expand Down Expand Up @@ -69,6 +70,8 @@
"benchmark": "1.0.0",
"bitcore-p2p": "^1.1.0",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"istanbul": "^0.4.3",
"jshint": "^2.9.2",
"jshint-stylish": "^2.1.0",
"mocha": "^2.4.5",
Expand Down

0 comments on commit 8d7d78a

Please sign in to comment.