Skip to content

Commit

Permalink
(ci/test): add CodeCov test coverage reporting
Browse files Browse the repository at this point in the history
- change CI to output and upload coverage reports

- (docs): add coverage badge to README
  • Loading branch information
agilgur5 committed Nov 19, 2019
1 parent 6104acb commit c83135b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ language: node_js
# default is the very old 0.10.48; match local version instead
node_js: '8.9'

script: npm test
after_script: npm run test:pub
script: npm test -- --coverage
after_script:
# upload coverage reports to CodeCov
- bash <(curl -s https://codecov.io/bash)
- npm run test:pub
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<br><!-- status / activity -->
[![typings](https://img.shields.io/npm/types/mst-persist.svg)](https://github.com/agilgur5/mst-persist/blob/master/src/index.ts)
[![build status](https://img.shields.io/travis/agilgur5/mst-persist/master.svg)](https://travis-ci.org/agilgur5/mst-persist)
[![code coverage](https://img.shields.io/codecov/c/gh/agilgur5/mst-persist/master.svg)](https://codecov.io/gh/agilgur5/mst-persist)
<br>
[![NPM](https://nodei.co/npm/mst-persist.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/package/mst-persist)

Expand Down

0 comments on commit c83135b

Please sign in to comment.