From 5a0f379289dbcec8409ac17cf1ead414f33e0dcc Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 27 Feb 2019 08:46:19 +0100 Subject: [PATCH] ci: codecov: set name for uploads/builds --- .travis.yml | 2 +- azure-pipelines.yml | 1 + scripts/upload-coverage.bat | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7cfc4068a..be30f0151 100644 --- a/.travis.yml +++ b/.travis.yml @@ -105,7 +105,7 @@ after_success: coverage combine coverage xml coverage report -m - bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F $TRAVIS_OS_NAME + bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F $TRAVIS_OS_NAME -n $TOXENV fi notifications: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 949c39fc4..e27f03ee8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -120,3 +120,4 @@ jobs: condition: eq(variables['PYTEST_COVERAGE'], '1') env: CODECOV_TOKEN: $(CODECOV_TOKEN) + PYTEST_CODECOV_NAME: $(tox.env) diff --git a/scripts/upload-coverage.bat b/scripts/upload-coverage.bat index 3f9d423e7..ad8092d16 100644 --- a/scripts/upload-coverage.bat +++ b/scripts/upload-coverage.bat @@ -10,7 +10,7 @@ if "%PYTEST_COVERAGE%" == "1" ( coverage combine coverage xml coverage report -m - scripts\retry codecov --required -X gcov pycov search -f coverage.xml --flags windows + scripts\retry codecov --required -X gcov pycov search -f coverage.xml --flags windows --name %PYTEST_CODECOV_NAME% ) else ( echo Skipping coverage upload, PYTEST_COVERAGE=%PYTEST_COVERAGE% )