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
@@ -1,7 +1,5 @@
language: node_js language: node_js
node_js: node_js:
- "0.10" - "0.10"
before_install:
pip install codecov
after_success: after_success:
codecov npm run coverage
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "babel-istanbul cover _mocha -- --compilers js:babel/register && babel-istanbul check-coverage --branches 100", "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", "build": "babel src -d dist",
"prepublish": "npm run build" "prepublish": "npm run build"
}, },
Expand All @@ -25,6 +26,7 @@
"babel": "^5.6.14", "babel": "^5.6.14",
"babel-istanbul": "^0.2.10", "babel-istanbul": "^0.2.10",
"chai": "^3.0.0", "chai": "^3.0.0",
"codecov.io": "^0.1.5",
"mocha": "^2.2.5" "mocha": "^2.2.5"
} }
} }

0 comments on commit 82bbfb4

Please sign in to comment.