Skip to content

Commit

Permalink
Add coverage script, run on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Jul 9, 2015
1 parent f5fb6af commit 82bbfb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: node_js
node_js:
- "0.10"
before_install:
pip install codecov
after_success:
codecov
npm run coverage
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"scripts": {
"test": "babel-istanbul cover _mocha -- --compilers js:babel/register && babel-istanbul check-coverage --branches 100",
"coverage": "cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js",
"build": "babel src -d dist",
"prepublish": "npm run build"
},
Expand All @@ -25,6 +26,7 @@
"babel": "^5.6.14",
"babel-istanbul": "^0.2.10",
"chai": "^3.0.0",
"codecov.io": "^0.1.5",
"mocha": "^2.2.5"
}
}

0 comments on commit 82bbfb4

Please sign in to comment.