Skip to content

Commit 9b7dfd8

Browse files
committed
Set up codecov
1 parent b651f9d commit 9b7dfd8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
language: node_js
22
node_js:
33
- 8
4+
after_success:
5+
- npm run cover

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "webpack-dev-server",
1111
"size": "npm run prepublish && bundlesize",
1212
"standard": "standard",
13-
"cover": "npm test && nyc report --reporter=html --reporter-lcov",
13+
"cover": "npm test && nyc report --reporter=html --reporter-lcov > coverage.lcov && codecov",
1414
"test": "nyc ava"
1515
},
1616
"keywords": [],
@@ -30,6 +30,7 @@
3030
"browser-env": "^3.1.0",
3131
"bundlesize": "^0.12.1",
3232
"bytes": "^2.5.0",
33+
"codecov": "^2.3.0",
3334
"loglevel": "^1.4.1",
3435
"nyc": "^11.0.3",
3536
"react": "^15.6.1",

0 commit comments

Comments
 (0)