Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently I added Windows support, AppVeyor CI tests and coverage collection on Windows to a project of mine (see paylogic/pip-accel#61). In the process I found that support for AppVeyor in coveralls-python was a bit tricky to get right.
The
$CI_BRANCH
environment variable isn't available on AppVeyor and thegit rev-parse --abbrev-ref HEAD
fallback in coveralls-python incorrectly resulted inHEAD
which meant my coverage reports on Coveralls.io referenced the branch nameHEAD
instead of the expected valuemaster
(kind of confusing becauseHEAD
isn't a branch AFAIK :-).During experimentation I worked around this by creating a wrapper for the
coveralls
command that would set$CI_BRANCH
based on$APPVEYOR_REPO_BRANCH
which resulted in correct behavior. However this implies that every user of coveralls-python would need to do this, so I decided to fork and extend coveralls-python instead, hopefully saving future users some time and frustration.My additions follow the "examples" given by the existing Travis and Circle CI support, this is how I decided what the values of
service_job_id
andservice_pull_request
should be (cross-referencing with the documented environment variables for AppVeyor).I added a test as well that passes in all Python environments I am able to test (I don't have PyPy and certain Python 3 versions installed).