Skip to content

Commit 2bd97eb

Browse files
committed
Use 'pypy' as executable on PyPy env [skip travis]
1 parent bc64507 commit 2bd97eb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ trigger:
55
variables:
66
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv"
77
python.needs_vc: False
8+
python.exe: "python"
89
COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage"
910
COVERAGE_PROCESS_START: "$(Build.Repository.LocalPath)/.coveragerc"
1011
PYTEST_COVERAGE: '0'
@@ -44,10 +45,12 @@ jobs:
4445
pypy:
4546
python.version: 'pypy2'
4647
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.
4850
# pypy3:
4951
# python.version: 'pypy3'
5052
# tox.env: 'pypy3'
53+
# python.exe: 'pypy3'
5154
py34-xdist:
5255
python.version: '3.4'
5356
tox.env: 'py34-xdist'
@@ -91,12 +94,12 @@ jobs:
9194
condition: eq(variables['python.needs_vc'], True)
9295
displayName: 'Install VC for py27'
9396

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
9598
displayName: 'Install tox'
9699

97100
- script: |
98101
call scripts/setup-coverage-vars.bat || goto :eof
99-
python -m tox -e $(tox.env)
102+
$(python.exe) -m tox -e $(tox.env)
100103
displayName: 'Run tests'
101104
102105
- task: PublishTestResults@2
@@ -109,6 +112,6 @@ jobs:
109112
displayName: 'Report and upload coverage'
110113
condition: eq(variables['PYTEST_COVERAGE'], '1')
111114
env:
112-
PYTHON: python
115+
PYTHON: $(python.exe)
113116
CODECOV_TOKEN: $(CODECOV_TOKEN)
114117
PYTEST_CODECOV_NAME: $(tox.env)

0 commit comments

Comments
 (0)