Skip to content

Commit ddb16a1

Browse files
authored
Merge pull request #4874 from blueyed/pypy3-azure
ci: azure: fix coverage reporting with PyPy (not used currently)
2 parents 54c70bc + 2e871f3 commit ddb16a1

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
python.version: 'pypy'
3838
tox.env: 'pypy'
3939
python.exe: 'pypy'
40+
pypy3:
41+
python.version: 'pypy3'
42+
tox.env: 'pypy3'
43+
python.exe: 'pypy3'
4044
py34:
4145
python.version: '3.4'
4246
tox.env: 'py34'
@@ -112,8 +116,9 @@ jobs:
112116
condition: succeededOrFailed()
113117

114118
- script: call scripts\upload-coverage.bat
115-
displayName: 'Upload coverage'
119+
displayName: 'Report and upload coverage'
116120
condition: eq(variables['PYTEST_COVERAGE'], '1')
117121
env:
122+
PYTHON: $(python.exe)
118123
CODECOV_TOKEN: $(CODECOV_TOKEN)
119124
PYTEST_CODECOV_NAME: $(tox.env)

scripts/upload-coverage.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ if "%PYTEST_COVERAGE%" == "1" (
66
) else (
77
echo CODECOV_TOKEN NOT defined
88
)
9-
python -m pip install codecov
10-
coverage combine
11-
coverage xml
12-
coverage report -m
13-
scripts\retry codecov --required -X gcov pycov search -f coverage.xml --name %PYTEST_CODECOV_NAME%
9+
%PYTHON% -m pip install codecov
10+
%PYTHON% -m coverage combine
11+
%PYTHON% -m coverage xml
12+
%PYTHON% -m coverage report -m
13+
scripts\retry %PYTHON% -m codecov --required -X gcov pycov search -f coverage.xml --name %PYTEST_CODECOV_NAME%
1414
) else (
1515
echo Skipping coverage upload, PYTEST_COVERAGE=%PYTEST_COVERAGE%
1616
)

0 commit comments

Comments
 (0)