fix WINE code coverage paths

This commit is contained in:
Unrud 2018-09-08 17:01:42 +02:00 committed by Unrud
parent aad7906090
commit 7efc3203fc

View File

@ -51,11 +51,17 @@ before_install:
fi fi
install: install:
- pip3 install --upgrade codecov - pip3 install --upgrade coverage codecov
- ${PIP} install --upgrade --editable .[test,md5,bcrypt] - ${PIP} install --upgrade --editable .[test,md5,bcrypt]
script: script:
- ${PYTHON} setup.py test - ${PYTHON} setup.py test
after_success: after_success:
- |
if [ "${TRAVIS_OS_NAME}" == linux -a -n "${WINE_PYTHON}" ]; then
config="$(mktemp)"
printf '[paths]\nsource =\n .\n %s\n' "$(winepath --windows '')" >"${config}"
coverage3 combine --rcfile "${config}" .coverage
fi
- codecov --env WINE_PYTHON - codecov --env WINE_PYTHON