Permalink
Browse files

Add coverage script, run on travis

  • Loading branch information...
markdalgleish committed Jul 9, 2015
1 parent f5fb6af commit 82bbfb464f57777916bfd6ebe56f8fd97a3b245d
Showing with 3 additions and 3 deletions.
  1. +1 −3 .travis.yml
  2. +2 −0 package.json
View
@@ -1,7 +1,5 @@
language: node_js
node_js:
- "0.10"
before_install:
pip install codecov
after_success:
codecov
npm run coverage
View
@@ -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"
},
@@ -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.