-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c3c219
commit 1fb7959
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# Travis Coveralls Example | ||
_todo_ | ||
Example repo for including Coveralls in Travis CI build process. (Using jest to run tests) | ||
|
||
Prerequisites | ||
------------- | ||
- Make sure repo is added to Travis CI | ||
- Make sure repo is added to Coveralls.io | ||
|
||
Install Coveralls package | ||
------------------------- | ||
`npm install coveralls --save-dev` | ||
|
||
Add Coveralls command to package.json | ||
------------------------------------- | ||
```json | ||
"scripts": { | ||
... | ||
"coveralls": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls", | ||
}, | ||
``` | ||
|
||
Add Coveralls command to .travis.yml | ||
------------------------------------ | ||
```yml | ||
script: | ||
- npm run coveralls | ||
``` | ||
Configurations | ||
------------- | ||
The above steps automatically integrates Coveralls in the Travis CI build. Further configurations are possible under the "PULL REQUESTS ALERTS" section in the repo settings at coveralls.io. |