When your CI is building in parallel, you'll want your coverage results to be merged after all have completed.
Set this var in your CI's build environment:
Then set up a post build webhook like so:
https://coveralls.io/webhook?repo_token=(your repo token)
Add the following to your .travis.yml:
notifications: webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN
Add the following to your circle.yml:
notify: webhooks: - url: https://coveralls.io/webhook?repo_token=(your repo token)
The payload is automatically parsed for Tddium (Solano Labs), Travis, Semaphore, and CircleCI. Otherwise, it will need to conform to this JSON structure:
This format can be used for an example shell script:
curl -k $COVERALLS_ENDPOINT/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$BUILD_NUMBER&payload[status]=done"