Example repo for including Coveralls in Travis CI build process. (Using jest to run tests)
- Make sure repo is added to Travis CI
- Make sure repo is added to Coveralls.io
npm install coveralls --save-dev
"scripts": {
...
"coveralls": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls",
},script:
- npm run coverallsThe 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.