Skip to content

Commit

Permalink
move istanbul and coveralls to travis only
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexej Yaroshevich committed Nov 30, 2014
1 parent 48eae2c commit ae38300
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ node_js:
- "0.11"

script: npm run travis

after_success:
- |
if [ "${TRAVIS_NODE_VERSION}" == "0.10" ]; then
npm i istanbul istanbul-coveralls
istanbul cover --report lcovonly ./node_modules/.bin/_mocha
istanbul-coveralls && echo "Coverage data was sent to coveralls!"
fi
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,19 @@
"ym": "0.1.x"
},
"devDependencies": {
"istanbul": "^0.3.2",
"istanbul-coveralls": "1.0.x",
"jscs": "1.8.x",
"jscs-jsdoc": "0.2.x",
"jshint": "~2.5.10",
"mocha": "~2.0.1",
"mocha-istanbul": "*"
"mocha": "~2.0.1"
},
"scripts": {
"cov-deps": "npm i istanbul mocha-istanbul",
"cov-clean": "rm -rf lib-cov; rm -rf html-report",
"cov-build": "istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib",
"cov": "npm run cov-clean && npm run cov-build && PYM_COVER=1 mocha -R mocha-istanbul",
"lint": "jshint lib test && jscs lib test",
"test": "npm run lint && mocha",
"travis": "npm run test && npm run coveralls",
"coveralls": "istanbul cover ./node_modules/.bin/_mocha -- -R spec && istanbul-coveralls"
"travis": "npm run test"
},
"licenses": [
{
Expand Down

0 comments on commit ae38300

Please sign in to comment.