5
5
variables :
6
6
PYTEST_ADDOPTS : " --junitxml=build/test-results/$(tox.env).xml -vv"
7
7
python.needs_vc : False
8
+ python.exe : " python"
8
9
COVERAGE_FILE : " $(Build.Repository.LocalPath)/.coverage"
9
10
COVERAGE_PROCESS_START : " $(Build.Repository.LocalPath)/.coveragerc"
10
11
PYTEST_COVERAGE : ' 0'
@@ -44,10 +45,12 @@ jobs:
44
45
pypy :
45
46
python.version : ' pypy2'
46
47
tox.env : ' pypy'
47
- # NOTE: pypy3 fails to install pip currently due to an interal error.
48
+ python.exe : ' pypy'
49
+ # NOTE: pypy3 fails to install pip currently due to an internal error.
48
50
# pypy3:
49
51
# python.version: 'pypy3'
50
52
# tox.env: 'pypy3'
53
+ # python.exe: 'pypy3'
51
54
py34-xdist :
52
55
python.version : ' 3.4'
53
56
tox.env : ' py34-xdist'
@@ -91,12 +94,12 @@ jobs:
91
94
condition : eq(variables['python.needs_vc'], True)
92
95
displayName : ' Install VC for py27'
93
96
94
- - script : python -m pip install --upgrade pip && python -m pip install tox
97
+ - script : $( python.exe) -m pip install --upgrade pip && $( python.exe) -m pip install tox
95
98
displayName : ' Install tox'
96
99
97
100
- script : |
98
101
call scripts/setup-coverage-vars.bat || goto :eof
99
- python -m tox -e $(tox.env)
102
+ $( python.exe) -m tox -e $(tox.env)
100
103
displayName: 'Run tests'
101
104
102
105
- task : PublishTestResults@2
@@ -109,6 +112,6 @@ jobs:
109
112
displayName : ' Report and upload coverage'
110
113
condition : eq(variables['PYTEST_COVERAGE'], '1')
111
114
env :
112
- PYTHON : python
115
+ PYTHON : $( python.exe)
113
116
CODECOV_TOKEN : $(CODECOV_TOKEN)
114
117
PYTEST_CODECOV_NAME : $(tox.env)
0 commit comments