Skip to content

Commit

Permalink
Use codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Nov 6, 2017
1 parent c0d84fe commit 64f78c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ before_install:
script:
- |
if [ "$TEST_TYPE" = test ]; then
npm test
npm test -- --coverage && \
bash <(curl -s https://codecov.io/bash)
else
npm run $TEST_TYPE
fi
env:
matrix:
- TEST_TYPE=lint
- TEST_TYPE=test
- TEST_TYPE=coverage
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"pub": "rc-tools run pub --babel-runtime",
"lint": "rc-tools run lint",
"test": "jest",
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls"
"coverage": "jest --coverage"
},
"jest": {
"collectCoverageFrom": [
Expand All @@ -65,7 +65,6 @@
"devDependencies": {
"async": "~2.5.0",
"bootstrap": "~3.3.2",
"coveralls": "^2.11.15",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.2",
"enzyme-to-json": "^3.1.4",
Expand Down

0 comments on commit 64f78c3

Please sign in to comment.