Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Mar 26, 2020
1 parent 60a473d commit c0c1fe1
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 35 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ before_install:

script:
- npm run build
- npm test -- --coverage
- npm test

after_success: npm run coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# petstore-react

[![Build Status](https://api.travis-ci.org/chubbyphp/petstore-react.png?branch=master)](https://travis-ci.org/chubbyphp/petstore-react)
[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/petstore-react/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/petstore-react?branch=master)

## Description

Expand Down
90 changes: 56 additions & 34 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@types/react": "^16.9.25",
"@types/react-dom": "^16.9.5",
"@types/react-router-dom": "^5.1.3",
"coveralls": "^3.0.11",
"date-fns": "^2.11.0",
"fetch-mock": "^9.3.1",
"jest-environment-jsdom-sixteen": "^1.0.3",
Expand Down Expand Up @@ -51,6 +52,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jest-environment-jsdom-sixteen",
"coverage": "react-scripts test --env=jest-environment-jsdom-sixteen --coverage && coveralls < coverage/lcov.info",
"eject": "react-scripts eject"
}
}

0 comments on commit c0c1fe1

Please sign in to comment.