Skip to content

Commit

Permalink
feat(circleci): support parallel builds in the client (#106)
Browse files Browse the repository at this point in the history
* Add support for parallel builds.

* Send boolean True. Not string.
  • Loading branch information
indradhanush authored and TheKevJames committed Apr 2, 2017
1 parent c554126 commit 7ba3a58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coveralls/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def __init__(self, token_required=True, **kwargs):
if os.environ.get('COVERALLS_REPO_TOKEN', None):
self.config['repo_token'] = os.environ.get('COVERALLS_REPO_TOKEN')

parallel = os.environ.get('COVERALLS_PARALLEL', '')
if parallel.lower() == 'true':
self.config['parallel'] = True

if token_required and not self.config.get('repo_token') and not is_travis_or_circle:
raise CoverallsException(
'Not on Travis or CircleCI. You have to provide either repo_token in %s '
Expand Down Expand Up @@ -164,7 +168,8 @@ def create_data(self, extra=None):
"source": "def seven\n eight\n nine\nend",
"coverage": [null, 1, 0, null]
}
]
],
"parallel": True
}
"""
if not self._data:
Expand Down

0 comments on commit 7ba3a58

Please sign in to comment.