summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2019-02-25 20:27:45 -0300
committerDaniel Hahler <git@thequod.de>2019-02-26 16:56:25 +0100
commitd5d190335c66e5a1212766524b233f5a409e5948 (patch)
tree32f66d47395c9242a4c2d589e5d3be18d6d99508 /azure-pipelines.yml
parent7428064f790ba92b9fac7378f9de58e332c6a418 (diff)
downloadpytest-d5d190335c66e5a1212766524b233f5a409e5948.tar.gz
Upload code coverage from azure
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml12
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)