Skip to content

Commit

Permalink
Updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ollelauribostrom committed Apr 29, 2018
1 parent 7c3c219 commit 1fb7959
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
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.

0 comments on commit 1fb7959

Please sign in to comment.