55variables :
66 PYTEST_ADDOPTS : " --junitxml=build/test-results/$(tox.env).xml -vv"
77 python.needs_vc : False
8- python.exe : " python"
98 COVERAGE_FILE : " $(Build.Repository.LocalPath)/.coverage"
109 COVERAGE_PROCESS_START : " $(Build.Repository.LocalPath)/.coveragerc"
1110 PYTEST_COVERAGE : ' 0'
@@ -43,14 +42,12 @@ jobs:
4342 # But no exception with py27-pexpect,py27-twisted,py27-numpy.
4443 PYTEST_COVERAGE : ' 1'
4544 pypy :
46- python.version : ' pypy '
45+ python.version : ' pypy2 '
4746 tox.env : ' pypy'
48- python.exe : ' pypy'
4947 # NOTE: pypy3 fails to install pip currently due to an interal error.
5048 # pypy3:
5149 # python.version: 'pypy3'
5250 # tox.env: 'pypy3'
53- # python.exe: 'pypy3'
5451 py34-xdist :
5552 python.version : ' 3.4'
5653 tox.env : ' py34-xdist'
8683
8784 steps :
8885 - task : UsePythonVersion@0
89- condition : not(startsWith(variables['python.exe'], 'pypy'))
9086 inputs :
9187 versionSpec : ' $(python.version)'
9288 architecture : ' x64'
@@ -95,29 +91,12 @@ jobs:
9591 condition : eq(variables['python.needs_vc'], True)
9692 displayName : ' Install VC for py27'
9793
98- - script : choco install python.pypy
99- condition : eq(variables['python.exe'], 'pypy')
100- displayName : ' Install pypy'
101-
102- - script : choco install pypy3
103- condition : eq(variables['python.exe'], 'pypy3')
104- displayName : ' Install pypy3'
105-
106- - task : PowerShell@2
107- inputs :
108- targetType : ' inline'
109- script : |
110- Invoke-WebRequest -Uri "https://bootstrap.pypa.io/get-pip.py" -OutFile "get-pip.py"
111- $(python.exe) get-pip.py
112- condition : startsWith(variables['python.exe'], 'pypy')
113- displayName : ' Install pip'
114-
115- - script : $(python.exe) -m pip install --upgrade pip && $(python.exe) -m pip install tox
94+ - script : python -m pip install --upgrade pip && python -m pip install tox
11695 displayName : ' Install tox'
11796
11897 - script : |
11998 call scripts/setup-coverage-vars.bat || goto :eof
120- $( python.exe) -m tox -e $(tox.env)
99+ python -m tox -e $(tox.env)
121100 displayName: 'Run tests'
122101
123102 - task : PublishTestResults@2
@@ -130,6 +109,6 @@ jobs:
130109 displayName : ' Report and upload coverage'
131110 condition : eq(variables['PYTEST_COVERAGE'], '1')
132111 env :
133- PYTHON : $( python.exe)
112+ PYTHON : python
134113 CODECOV_TOKEN : $(CODECOV_TOKEN)
135114 PYTEST_CODECOV_NAME : $(tox.env)
0 commit comments