4
4
5
5
variables :
6
6
PYTEST_ADDOPTS : " --junitxml=build/test-results/$(tox.env).xml"
7
+ python.needs_vc : False
8
+ python.exe : " python"
7
9
8
10
jobs :
9
11
15
17
py27 :
16
18
python.version : ' 2.7'
17
19
tox.env : ' py27'
20
+ py27-xdist :
21
+ python.version : ' 2.7'
22
+ tox.env : ' py27-xdist'
23
+ py27-numpy/nobyte :
24
+ python.version : ' 2.7'
25
+ tox.env : ' py27-numpy,py27-nobyte'
26
+ py27-trial :
27
+ python.version : ' 2.7'
28
+ tox.env : ' py27-trial'
29
+ python.needs_vc : True
30
+ py27-pluggymaster :
31
+ python.version : ' 2.7'
32
+ tox.env : ' pluggymaster'
33
+ pypy :
34
+ python.version : ' pypy'
35
+ tox.env : ' pypy'
36
+ python.exe : ' pypy'
37
+ py34 :
38
+ python.version : ' 3.4'
39
+ tox.env : ' py34'
18
40
py35 :
19
41
python.version : ' 3.5'
20
42
tox.env : ' py35'
@@ -24,18 +46,52 @@ jobs:
24
46
py37 :
25
47
python.version : ' 3.7'
26
48
tox.env : ' py37'
27
- maxParallel : 4
49
+ py37-linting/docs/doctesting :
50
+ python.version : ' 3.7'
51
+ tox.env : ' linting,docs,doctesting'
52
+ py37-xdist :
53
+ python.version : ' 3.7'
54
+ tox.env : ' py37-xdist'
55
+ py37-trial/numpy :
56
+ python.version : ' 3.7'
57
+ tox.env : ' py37-trial,py37-numpy'
58
+ py37-pluggymaster :
59
+ python.version : ' 3.7'
60
+ tox.env : ' py37-pluggymaster'
61
+ maxParallel : 10
28
62
29
63
steps :
30
64
- task : UsePythonVersion@0
65
+ condition : not(startsWith(variables['python.exe'], 'pypy'))
31
66
inputs :
32
67
versionSpec : ' $(python.version)'
33
68
architecture : ' x64'
34
69
35
- - script : python -m pip install --upgrade pip && pip install tox
70
+ - script : choco install vcpython27
71
+ condition : eq(variables['python.needs_vc'], True)
72
+ displayName : ' Install VC for py27'
73
+
74
+ - script : choco install python.pypy
75
+ condition : eq(variables['python.exe'], 'pypy')
76
+ displayName : ' Install pypy'
77
+
78
+ - script : choco install pypy3
79
+ condition : eq(variables['python.exe'], 'pypy3')
80
+ displayName : ' Install pypy3'
81
+
82
+ - task : PowerShell@2
83
+ inputs :
84
+ targetType : ' inline'
85
+ script : |
86
+ Invoke-WebRequest -Uri "https://bootstrap.pypa.io/get-pip.py" -OutFile "get-pip.py"
87
+ $(python.exe) get-pip.py
88
+ condition : startsWith(variables['python.exe'], 'pypy')
89
+ displayName : ' Install pip'
90
+
91
+ - script : $(python.exe) -m pip install --upgrade pip && $(python.exe) -m pip install tox
36
92
displayName : ' Install tox'
37
93
38
- - script : python -m tox -e $(tox.env)
94
+ - script : $( python.exe) -m tox -e $(tox.env)
39
95
displayName : ' Run tests'
40
96
41
97
- task : PublishTestResults@2
0 commit comments