Skip to content

Commit

Permalink
Adds codecov instructions for travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coconutcraig committed Nov 15, 2018
1 parent 4e90a5a commit 4009fa9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ sudo: false

cache: yarn

install:
- yarn global add codecov

node_js:
- "node"
- "lts/*"

script:
- npm run test:coverage
- codecov
1 change: 1 addition & 0 deletions jestconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"coverageDirectory": "./coverage/",
"clearMocks": true,
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"types": "dist/index.d.ts",
"scripts": {
"test": "jest --config jestconfig.json",
"test:coverage": "jest --config jestconfig.json --coverage",
"test:watch": "npm run test -- --watch",
"build": "rollup -c",
"watch": "rollup -cw",
Expand Down

0 comments on commit 4009fa9

Please sign in to comment.