]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
travis: fix codecov
authorDaniel Axtens <dja@axtens.net>
Wed, 23 Oct 2019 22:12:50 +0000 (09:12 +1100)
committerDaniel Axtens <dja@axtens.net>
Tue, 29 Oct 2019 04:32:12 +0000 (15:32 +1100)
In e017f69376da ("travis: run pep8/flake8 tests"), codecov
was removed from the install step, on the basis that tox-travis
would pull it in automatically.

This, it turns out, isn't entirely true: it is pulled in to the
tox environment, but the data is actually sent in an after_success
step. That is outside the tox environment, as it should be - if it
were part of the tox environment, running `tox -e coverage` on a
developer laptop would try to send data to the web. But, as codecov
now isn't present outside the tox environment, we see in the logs:

$ codecov
codecov: command not found

We don't get any reporting of success/failure in the after_success
step, so we didn't notice.

Restore the installation in the travis environment.

Fixes: e017f69376da ("travis: run pep8/flake8 tests")
Signed-off-by: Daniel Axtens <dja@axtens.net>
.travis.yml

index ad9b9439e080792d5d4baf1da01f08d2d9d2822d..f8c5462588233af35bd815bece858e71152ec0b0 100644 (file)
@@ -45,6 +45,7 @@ before_script:
 
 install:
   - pip install tox-travis
+  - pip install codecov
 
 script:
   - >