From d5d190335c66e5a1212766524b233f5a409e5948 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 25 Feb 2019 20:27:45 -0300 Subject: Upload code coverage from azure --- azure-pipelines.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'azure-pipelines.yml') 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) -- cgit v1.2.3