Skip to content

Commit af43493

Browse files
authored
Merge pull request #8 from brunolm/coveralls
Coveralls
2 parents 53d9599 + cb8a48e commit af43493

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
language: node_js
22
node_js:
33
- "9.2.0"
4+
5+
after_success:
6+
- npm run coverage
7+
- npm run coveralls

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# React: How To
22
[![Build Status](https://travis-ci.org/brunolm/react-how-to.svg?branch=master)](https://travis-ci.org/brunolm/react-how-to)
3+
[![Coverage Status](https://coveralls.io/repos/github/brunolm/react-how-to/badge.svg?branch=coveralls)](https://coveralls.io/github/brunolm/react-how-to?branch=coveralls)
34

45
Each Pull Request will contain explanation and steps taken to complete a feature.
56

@@ -14,3 +15,4 @@ Each Pull Request will contain explanation and steps taken to complete a feature
1415
- [Setup test coverage](https://github.com/brunolm/react-how-to/pull/5)
1516

1617
- [Add project on Travis CI](https://github.com/brunolm/react-how-to/pull/2)
18+
- [Add project on Coveralls](https://github.com/brunolm/react-how-to/pull/8)

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build": "react-scripts-ts build",
1313
"test": "react-scripts-ts test --env=jsdom",
1414
"coverage": "npm test -- --coverage",
15+
"coveralls": "coveralls < ./coverage/lcov.info",
1516
"eject": "react-scripts-ts eject"
1617
},
1718
"jest": {
@@ -28,6 +29,7 @@
2829
"@types/node": "^8.0.53",
2930
"@types/react": "^16.0.25",
3031
"@types/react-dom": "^16.0.3",
32+
"coveralls": "^3.0.0",
3133
"enzyme": "^3.2.0",
3234
"enzyme-adapter-react-16": "^1.1.0",
3335
"raf": "^3.4.0"

0 commit comments

Comments
 (0)