Skip to content

Commit

Permalink
print code coverage after running test by default
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Nov 3, 2017
1 parent 7ff7a07 commit 11887b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
14 changes: 2 additions & 12 deletions .travis.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
sudo: false
git:
depth: 1
branches:
except: /^v\d/
language: node_js
node_js: stable
script:
- npm run-script pretest
- npm run-script coverage
after_script:
- npm install istanbul-coveralls
- node node_modules/.bin/istanbul-coveralls
notifications:
email: false
node_js: node
after_script: cat coverage/lcov.info | npx coveralls
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "realpaths",
"version": "1.0.0",
"description": "Like [fs.realpath][realpath], but resolves multiple paths at once",
"description": "Like fs.realpath, but resolves multiple paths at once",
"repository": "shinnn/realpaths",
"author": "Shinnosuke Watanabe (https://github.com/shinnn)",
"scripts": {
"pretest": "eslint --config @shinnn/node index.js test.js",
"test": "node --strong_mode test.js",
"coverage": "node --strong_mode node_modules/.bin/istanbul cover test.js"
"test": "istanbul cover test.js"
},
"license": "MIT",
"files": [
Expand Down

0 comments on commit 11887b7

Please sign in to comment.