# Code coverage using Coveralls for parallel builds

**URL:** <https://discuss.circleci.com/t/code-coverage-using-coveralls-for-parallel-builds/2474>\
**Category:** Build Environment\
**Tags:** parallelism, coverage\
**Created:** [March 3, 2016, 12:58pm UTC](https://discuss.circleci.com/t/code-coverage-using-coveralls-for-parallel-builds/2474 "2016-03-03T12:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![indradhanush](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/indradhanush/32/1872_2.png) [@indradhanush](https://discuss.circleci.com/u/indradhanush)\
**Post date:** [March 3, 2016, 12:58pm UTC](https://discuss.circleci.com/t/code-coverage-using-coveralls-for-parallel-builds/2474/1 "2016-03-03T12:58:32Z")

</div>

I am trying to integrate [coveralls](https://coveralls.io) in our python builds. I have the following set up:

1. Working coverage report generation
2. Working repo token for coveralls
3. Parallel builds in circleci

Now, in my `circle.yml`, I have the following:

```auto
test:
  post:
    - coveralls

```

Where, coveralls is a command obtained from the coveralls-python library. Now when the `coveralls` command is executed post the tests, I can see the following output:

```auto
Submitting coverage to coveralls.io...
Coverage submitted!
Job #19.1
https://coveralls.io/jobs/12483375 

```

But, I do not see any coverage report in my Coveralls account. However, if I manually ssh into one of the build machines, and run this command manually, I get a similar output as above, but only this time, I can see coverage reports in my Coveralls account.

I have also set `COVERALLS_PARALLEL: 'True'` and put the following in `coveralls.yml` as stated in the documentation [here](https://coveralls.zendesk.com/hc/en-us/articles/203484329):

```auto
notify:
  webhooks:
    - url: https://coveralls.io/webhook?repo_token=(your repo token)

```

Is there something that I am missing?

---

<div class="post-metadata">

**Author:** ![torbjoernk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/torbjoernk/32/2630_2.png) [@torbjoernk](https://discuss.circleci.com/u/torbjoernk)\
**Post date:** [April 23, 2016, 8:41pm UTC](https://discuss.circleci.com/t/code-coverage-using-coveralls-for-parallel-builds/2474/2 "2016-04-23T20:41:31Z")

</div>

I’m stuck here as well. However, there is obviously an error in your notification webhook: The phrase `(your repo token)` should actually be replaced by the repo token. I guess, you set it up via CircleCI’s webUI as an “encrypted”/hidden environment variable.

I’ve tried using it in that notification URL, but without luck:

```
notify:
  webhooks:
    - url: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN

```

Thus, my question to the folks at CircleCI: How is it possible to reuse the environment variables there?

---

<div class="post-metadata">

**Author:** ![aaron0browne](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/aaron0browne/32/1879_2.png) [@aaron0browne](https://discuss.circleci.com/u/aaron0browne)\
**Post date:** [June 16, 2016, 9:03pm UTC](https://discuss.circleci.com/t/code-coverage-using-coveralls-for-parallel-builds/2474/3 "2016-06-16T21:03:13Z")

</div>

I’m in need of a solution to this problem as well.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/code-coverage-using-coveralls-for-parallel-builds/2474/4 "2018-06-18T11:38:03Z")

</div>

Closed on June 18, 2018, 11:38am UTC


