Skip to content

Commit

Permalink
Travis - Send coverage on an after_script
Browse files Browse the repository at this point in the history
  • Loading branch information
bencevans committed Apr 10, 2014
1 parent 2f25241 commit cba93ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -3,7 +3,9 @@ node_js:
- "0.10"
- "0.8"
- "0.6"
before_install:
before_install:
- npm conf set strict-ssl false
script:
- npm run travis-test
- npm run travis-test
after_script:
- npm run report-coverage
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "./node_modules/mocha/bin/mocha -R spec",
"travis-test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage"
"travis-test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -R spec",
"report-coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit cba93ed

Please sign in to comment.