Browse Source

Report coverage separately

pull/104/head
Vitaly Puzrin 10 years ago
parent
commit
006d205c07
  1. 2
      .travis.yml
  2. 4
      Makefile

2
.travis.yml

@ -1,5 +1,5 @@
language: node_js
node_js:
- '0.10'
script: make test-ci
after_success: make report-coverage
sudo: false

4
Makefile

@ -60,8 +60,8 @@ coverage:
rm -rf coverage
istanbul cover node_modules/.bin/_mocha
test-ci: lint
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
report-coverage:
-istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
doc:
@if test ! `which ndoc` ; then \

Loading…
Cancel
Save