Skip to content

Commit

Permalink
Travis: Fix codecov to work again
Browse files Browse the repository at this point in the history
Currently codecov is not working, because there is an issue that it
doesn't work with the coverage 5.0 Python package.  Fix this issue by
making sure that coverage 4.x is used instead.

See the coverage error in the Travis build logs for latest master
builds (e.g. [1]) and the codecov issue [2]

[1] https://travis-ci.org/City-of-Helsinki/parkkihubi/jobs/639843555#L1003

[2] codecov/codecov-python#224
  • Loading branch information
suutari-ai committed Jan 21, 2020
1 parent 5c0c2d9 commit 64ba135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ addons:
- postgresql-client-10
- postgresql-10-postgis-2.4

install: pip install tox-travis codecov
install: pip install tox-travis

before_script: psql -U postgres -c "create extension postgis"

script: tox

after_success: codecov
after_success: pip install codecov coverage==4.5.4 && codecov

0 comments on commit 64ba135

Please sign in to comment.