Skip to content

Commit d395559

Browse files
author
Kent C. Dodds
committed
add codecov reporting
1 parent 0f8627a commit d395559

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ notifications:
1111
email: false
1212
script:
1313
- npm run validate
14+
after_success:
15+
- npm run report-coverage

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build:umd.min": "webpack --output-filename index.umd.min.js -p",
1212
"test": "cross-env NODE_ENV=test nyc mocha",
1313
"watch:test": "mocha --watch",
14+
"report-coverage": "cat ./coverage/lcov.info | codecov",
1415
"lint": "eslint src",
1516
"validate": "npm-run-all --parallel test lint build"
1617
},
@@ -41,6 +42,7 @@
4142
"babel-preset-es2015": "6.9.0",
4243
"babel-register": "6.11.6",
4344
"chai": "3.5.0",
45+
"codecov": "1.0.1",
4446
"cross-env": "2.0.0",
4547
"eslint": "3.2.0",
4648
"eslint-config-kentcdodds": "^9.0.0",

0 commit comments

Comments
 (0)