ci: codecov: add flags for GHA/Travis

This would help with debugging missing coverage when removing Travis
jobs.
This commit is contained in:
Daniel Hahler 2020-01-23 14:44:30 +01:00
parent 6b13379f37
commit a8d67f5e7b
3 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ jobs:
with:
token: ${{ secrets.codecov }}
file: ./coverage.xml
flags: ${{ runner.os }}
flags: GHA
fail_ci_if_error: false
name: ${{ matrix.name }}

View File

@ -71,7 +71,7 @@ script: tox
after_success:
- |
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh -F Travis
fi
notifications:

View File

@ -15,4 +15,4 @@ python -m coverage xml
python -m coverage report -m
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash -o codecov-upload.sh
bash codecov-upload.sh -Z -X fix -f coverage.xml
bash codecov-upload.sh -Z -X fix -f coverage.xml "$@"