diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2019-02-25 20:27:45 -0300 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-02-26 16:56:25 +0100 |
commit | d5d190335c66e5a1212766524b233f5a409e5948 (patch) | |
tree | 32f66d47395c9242a4c2d589e5d3be18d6d99508 /azure-pipelines.yml | |
parent | 7428064f790ba92b9fac7378f9de58e332c6a418 (diff) | |
download | pytest-d5d190335c66e5a1212766524b233f5a409e5948.tar.gz |
Upload code coverage from azure
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 049980efb..881f7dc22 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,6 +6,10 @@ variables: PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml" python.needs_vc: False python.exe: "python" + COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage" + COVERAGE_PROCESS_START: "$(Build.Repository.LocalPath)/.coveragerc" + _PYTEST_TOX_COVERAGE_RUN: "coverage run -m" + _PYTEST_TOX_EXTRA_DEP: "coverage-enable-subprocess" jobs: @@ -34,6 +38,9 @@ jobs: python.version: 'pypy' tox.env: 'pypy' python.exe: 'pypy' + _PYTEST_TOX_COVERAGE_RUN: "" + _PYTEST_TOX_EXTRA_DEP: "" + PYTEST_NO_COVERAGE: "1" py34: python.version: '3.4' tox.env: 'py34' @@ -99,3 +106,8 @@ jobs: testResultsFiles: 'build/test-results/$(tox.env).xml' testRunTitle: '$(tox.env)' condition: succeededOrFailed() + + - script: call scripts\upload-coverage.bat + displayName: 'Upload coverage' + env: + CODECOV_TOKEN: $(CODECOV_TOKEN) |