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"
9
8
COVERAGE_FILE : " $(Build.Repository.LocalPath)/.coverage"
10
9
COVERAGE_PROCESS_START : " $(Build.Repository.LocalPath)/.coveragerc"
11
10
PYTEST_COVERAGE : ' 0'
@@ -43,14 +42,12 @@ jobs:
43
42
# But no exception with py27-pexpect,py27-twisted,py27-numpy.
44
43
PYTEST_COVERAGE : ' 1'
45
44
pypy :
46
- python.version : ' pypy '
45
+ python.version : ' pypy2 '
47
46
tox.env : ' pypy'
48
- python.exe : ' pypy'
49
47
# NOTE: pypy3 fails to install pip currently due to an interal error.
50
48
# pypy3:
51
49
# python.version: 'pypy3'
52
50
# tox.env: 'pypy3'
53
- # python.exe: 'pypy3'
54
51
py34-xdist :
55
52
python.version : ' 3.4'
56
53
tox.env : ' py34-xdist'
86
83
87
84
steps :
88
85
- task : UsePythonVersion@0
89
- condition : not(startsWith(variables['python.exe'], 'pypy'))
90
86
inputs :
91
87
versionSpec : ' $(python.version)'
92
88
architecture : ' x64'
@@ -95,29 +91,12 @@ jobs:
95
91
condition : eq(variables['python.needs_vc'], True)
96
92
displayName : ' Install VC for py27'
97
93
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
116
95
displayName : ' Install tox'
117
96
118
97
- script : |
119
98
call scripts/setup-coverage-vars.bat || goto :eof
120
- $( python.exe) -m tox -e $(tox.env)
99
+ python -m tox -e $(tox.env)
121
100
displayName: 'Run tests'
122
101
123
102
- task : PublishTestResults@2
@@ -130,6 +109,6 @@ jobs:
130
109
displayName : ' Report and upload coverage'
131
110
condition : eq(variables['PYTEST_COVERAGE'], '1')
132
111
env :
133
- PYTHON : $( python.exe)
112
+ PYTHON : python
134
113
CODECOV_TOKEN : $(CODECOV_TOKEN)
135
114
PYTEST_CODECOV_NAME : $(tox.env)
0 commit comments