Only upload coverage measurement if we took one

This commit is contained in:
Jean-Paul Calderone 2020-10-14 12:58:15 -04:00
parent 45daf717ae
commit db4bac90cf

View File

@ -154,6 +154,8 @@ jobs:
# we maintain. # we maintain.
WHEELHOUSE_PATH: &WHEELHOUSE_PATH "/tmp/wheelhouse" WHEELHOUSE_PATH: &WHEELHOUSE_PATH "/tmp/wheelhouse"
PIP_FIND_LINKS: "file:///tmp/wheelhouse" PIP_FIND_LINKS: "file:///tmp/wheelhouse"
# Upload the coverage report.
UPLOAD_COVERAGE: "yes"
# pip cannot install packages if the working directory is not readable. # pip cannot install packages if the working directory is not readable.
# We want to run a lot of steps as nobody instead of as root. # We want to run a lot of steps as nobody instead of as root.
@ -202,7 +204,7 @@ jobs:
- run: &SUBMIT_COVERAGE - run: &SUBMIT_COVERAGE
name: "Submit coverage results" name: "Submit coverage results"
command: | command: |
/tmp/venv/bin/codecov [ -n "${UPLOAD_COVERAGE}" ] && /tmp/venv/bin/codecov
debian-8: debian-8:
@ -250,6 +252,8 @@ jobs:
TAHOE_LAFS_TOX_ENVIRONMENT: "deprecations,upcoming-deprecations" TAHOE_LAFS_TOX_ENVIRONMENT: "deprecations,upcoming-deprecations"
# Put the logs somewhere we can report them. # Put the logs somewhere we can report them.
TAHOE_LAFS_WARNINGS_LOG: "/tmp/artifacts/deprecation-warnings.log" TAHOE_LAFS_WARNINGS_LOG: "/tmp/artifacts/deprecation-warnings.log"
# The deprecations tox environments don't do coverage measurement.
UPLOAD_COVERAGE: ""
integration: integration: