Skip to content

Commit de1999f

Browse files
committed
(ci/test): add CodeCov test coverage reporting
- change CI to output and upload coverage reports - (docs): add coverage badge to README
1 parent 94fb45b commit de1999f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ language: node_js
33
node_js: '8.9'
44

55
before_script: npm run lint
6-
script: npm test
7-
after_script: npm run test:pub
6+
script: npm test -- --coverage
7+
after_script:
8+
# upload coverage reports to CodeCov
9+
- bash <(curl -s https://codecov.io/bash)
10+
- npm run test:pub

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[![dw](https://img.shields.io/npm/dw/react-signature-canvas.svg)](https://npmjs.org/package/react-signature-canvas)
1212
<br><!-- status / activity -->
1313
[![build status](https://img.shields.io/travis/agilgur5/react-signature-canvas/master.svg)](https://travis-ci.org/agilgur5/react-signature-canvas)
14+
[![code coverage](https://img.shields.io/codecov/c/gh/agilgur5/react-signature-canvas/master.svg)](https://codecov.io/gh/agilgur5/react-signature-canvas)
1415
<br>
1516
[![NPM](https://nodei.co/npm/react-signature-canvas.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/package/react-signature-canvas)
1617

0 commit comments

Comments
 (0)