Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
fix for coveralls failing in stage
Browse files Browse the repository at this point in the history
Coveralls fails because of support for coverage 5.0. Until this TheKevJames/coveralls-python#203 is solved it should be like this.
  • Loading branch information
blankdots committed Dec 16, 2019
1 parent a6119e3 commit a662570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/unit/coveralls.py
Expand Up @@ -8,7 +8,7 @@
# Solution provided by https://stackoverflow.com/questions/32757765/conditional-commands-in-tox-tox-travis-ci-and-coveralls

if __name__ == '__main__':
if 'TRAVIS' in os.environ:
if 'COVERALLS_REPO_TOKEN' in os.environ:
rc = call('coveralls')
sys.stdout.write("Coveralls report from CI.\n")
# raise SystemExit(rc)
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Expand Up @@ -20,12 +20,13 @@ commands = flake8 .

[testenv:unit_tests]
passenv = COVERALLS_REPO_TOKEN
deps = coverage
deps =
coverage==4.5.4
-rrequirements.txt
-rtests/unit/requirements.txt
commands = coverage run -m pytest -x tests/unit
coverage report
coveralls
python tests/unit/coveralls.py

[gh-actions]
python =
Expand Down

0 comments on commit a662570

Please sign in to comment.