Skip to content

Commit

Permalink
Merge pull request #36 from smartprocure/feature/polishing-cicoverage
Browse files Browse the repository at this point in the history
A small polish to cicoverage
  • Loading branch information
daedalus28 committed Feb 20, 2017
2 parents 9c5a7b2 + 7884925 commit 4f2819e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ before_script:
- git fetch
- LIST=$(git diff-index --name-only origin/master | grep .*\\.js | grep -v json | grep -v eslint | tr '\n' ' '); if [ "$LIST" ]; then eslint $LIST; fi
after_script:
- npm run cicoverage | ./node_modules/coveralls/bin/coveralls.js
- npm run cicoverage | ./node_modules/.bin/codacy-coverage
- npm run cicoverage
- ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info
- ./node_modules/.bin/codacy-coverage < ./coverage/lcov.info
- rm -fr ./coverage
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "babel-node ./node_modules/mocha/bin/_mocha",
"test:watch": "chokidar 'src/*.js' 'test/*.js' -c 'npm t'",
"coverage": "nyc --require babel-core/register node_modules/.bin/mocha test",
"cicoverage": "nyc --reporter=lcov --require babel-core/register node_modules/.bin/mocha test && cat ./coverage/lcov.info",
"cicoverage": "nyc --reporter=lcov --require babel-core/register node_modules/.bin/mocha test",
"lint": "eslint src/*.js test/*.js",
"prepublish": "webpack"
},
Expand Down

0 comments on commit 4f2819e

Please sign in to comment.