Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[run]
source = pytest,_pytest,testing/
include =
src/*
testing/*
.tox/*/lib/python*/site-packages/_pytest/*
.tox/*/lib/python*/site-packages/pytest.py
.tox\*\Lib\site-packages\_pytest\*
.tox\*\Lib\site-packages\pytest.py
parallel = 1
branch = 1

Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ after_success:
# Add last TOXENV to $PATH.
PATH="$PWD/.tox/${TOXENV##*,}/bin:$PATH"
coverage combine
coverage xml --ignore-errors
coverage report -m --ignore-errors
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F $TRAVIS_OS_NAME
coverage xml
coverage report -m
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F $TRAVIS_OS_NAME -n $TOXENV
fi

notifications:
Expand Down
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ jobs:
condition: eq(variables['PYTEST_COVERAGE'], '1')
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
PYTEST_CODECOV_NAME: $(tox.env)
6 changes: 3 additions & 3 deletions scripts/upload-coverage.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ if "%PYTEST_COVERAGE%" == "1" (
)
python -m pip install codecov
coverage combine
coverage xml --ignore-errors
coverage report -m --ignore-errors
scripts\retry codecov --required -X gcov pycov search -f coverage.xml --flags windows
coverage xml
coverage report -m
scripts\retry codecov --required -X gcov pycov search -f coverage.xml --flags windows --name %PYTEST_CODECOV_NAME%
) else (
echo Skipping coverage upload, PYTEST_COVERAGE=%PYTEST_COVERAGE%
)