Add codecov support to AppVeyor and remove coveralls

This commit is contained in:
Bruno Oliveira
2018-09-02 10:22:20 -03:00
parent 410d5762c0
commit ec6fca4aa7
8 changed files with 46 additions and 45 deletions
+6 -4
View File
@@ -82,7 +82,9 @@ jobs:
before_script:
- |
if [[ "$PYTEST_NO_COVERAGE" != 1 ]]; then
export _PYTEST_TOX_COVERAGE_RUN="env COVERAGE_FILE=$PWD/.coverage COVERAGE_PROCESS_START=$PWD/.coveragerc coverage run --source {envsitepackagesdir}/_pytest/,$PWD/testing -m"
export COVERAGE_FILE="$PWD/.coverage"
export COVERAGE_PROCESS_START="$PWD/.coveragerc"
export _PYTEST_TOX_COVERAGE_RUN="coverage run --source {envsitepackagesdir}/_pytest/,{toxinidir}/testing -m"
export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
fi
@@ -94,9 +96,9 @@ after_success:
set -e
pip install codecov
coverage combine
coverage xml
coverage report -m
codecov --required -X gcov pycov search -f coverage.xml --flags ${TOXENV//-/ }
coverage xml --ignore-errors
coverage report -m --ignore-errors
codecov --required -X gcov pycov search -f coverage.xml --flags ${TOXENV//-/ } linux
# Coveralls does not support merged reports.
if [[ "$TOXENV" = py37 ]]; then