Skip to content

Commit

Permalink
Add Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Jul 27, 2017
1 parent 17e628a commit 9db7987
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ cache:
directories:
- node_modules

after_script:
- node_modules/.bin/codecov

branches:
only:
- master
Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: off
122 changes: 122 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
"lint": "eslint examples/*/src src test *.js",
"prepublish": "npm run build",
"tdd": "jest --watch",
"testonly": "jest --runInBand --verbose",
"test": "npm run lint && npm run testonly"
"test": "npm run lint && npm run testonly -- --coverage",
"testonly": "jest --runInBand --verbose"
},
"jest": {
"collectCoverageFrom": [
"src/**"
],
"setupFiles": [
"<rootDir>/test/setup.js"
]
Expand Down Expand Up @@ -61,6 +64,7 @@
"babel-preset-latest": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"codecov": "^2.2.0",
"enzyme": "^2.9.1",
"eslint": "^4.3.0",
"eslint-config-4catalyzer-react": "^0.3.0",
Expand Down

0 comments on commit 9db7987

Please sign in to comment.