4
4
# 'long_running_tests' Is a boolean indicating that the long-running tests should be executed.
5
5
# 'EnableDetectorPip': true . Required for Component Governance Support
6
6
7
-
8
7
trigger :
9
8
- master
9
+ variables :
10
+ python.version : ' 3.6'
10
11
11
12
jobs :
12
13
- job : ' Build_Target_Packages'
13
-
14
14
pool :
15
15
vmImage : ' ubuntu-16.04'
16
-
17
16
steps :
18
17
- task : UsePythonVersion@0
19
- displayName : ' Use Python 3.6 '
18
+ displayName : ' Use Python $(python.version) '
20
19
inputs :
21
- versionSpec : 3.6
20
+ versionSpec : $(python.version)
22
21
23
22
- script : |
24
23
pip install wheel setuptools pathlib twine readme-renderer[md]
@@ -34,31 +33,20 @@ jobs:
34
33
twine check $(Build.ArtifactStagingDirectory)/*
35
34
displayName: 'Verify Readme'
36
35
37
- - task : CopyFiles@2
38
- displayName : ' Move Dependencies Report to Build Artifacts'
39
- inputs :
40
- SourceFolder : ' $(Build.SourcesDirectory)'
41
- Contents : dependencies.html
42
- TargetFolder : ' $(Build.ArtifactStagingDirectory)'
43
- condition : always()
44
-
45
36
- task : PublishBuildArtifacts@1
46
37
displayName : ' Publish Artifacts'
47
38
condition : succeededOrFailed()
48
39
49
40
- job : ' Analyze'
50
41
dependsOn :
51
- - ' Build_Target_Packages'
52
-
42
+ - ' Build_Target_Packages'
53
43
pool :
54
- vmImage : ' vs2017-win2016'
55
-
56
- steps :
57
-
44
+ vmImage : ' ubuntu-16.04'
45
+ steps :
58
46
- task : UsePythonVersion@0
59
- displayName : ' Use Python 3.6 '
47
+ displayName : ' Use Python $(python.version) '
60
48
inputs :
61
- versionSpec : 3.6
49
+ versionSpec : $(python.version)
62
50
63
51
- script : |
64
52
pip install wheel Jinja2
69
57
enabled : true
70
58
inputs :
71
59
scriptPath : ' scripts/analyze_deps.py'
72
- arguments : ' --verbose --out "$(Build.SourcesDirectory )/dependencies.html"'
60
+ arguments : ' --verbose --out "$(Build.ArtifactStagingDirectory )/dependencies.html"'
73
61
74
62
- task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
63
+ # ComponentGovernance is currently unable to run on pull requests of public projects. Running on non-PR
64
+ # builds should be sufficient.
75
65
condition : and(always(), ne(variables['System.TeamProject'], 'public'))
76
66
displayName : ' Component Detection'
77
67
@@ -110,7 +100,6 @@ jobs:
110
100
python.version : ' 2.7'
111
101
pool :
112
102
vmImage : ' $(os.vmImage)'
113
-
114
103
steps :
115
104
- task : UsePythonVersion@0
116
105
displayName : ' Use Python $(python.version)'
@@ -149,15 +138,10 @@ jobs:
149
138
summaryFileLocation : ' $(Build.SourcesDirectory)/coverage.xml'
150
139
reportDirectory : ' $(Build.SourcesDirectory)/htmlcov'
151
140
152
- - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
153
- displayName : ' Component Detection'
154
- condition : and(eq(variables['os.name'],'Windows'),succeeded())
155
-
156
141
- job : Test_Alpha_Python
157
142
timeoutInMinutes : 90
158
143
condition : eq(variables['long_running_tests'], True)
159
144
160
-
161
145
- job : Special_Python_Distro_Tests
162
146
dependsOn :
163
147
- ' Build_Target_Packages'
@@ -177,10 +161,8 @@ jobs:
177
161
mkdir debug
178
162
cd debug
179
163
../configure --enable-optimizations --prefix=$HOME
180
- make install
181
-
164
+ make install
182
165
cd $(Build.SourcesDirectory)
183
-
184
166
PATH=/home/vsts/bin:$PATH
185
167
python3 -m ensurepip
186
168
python ./scripts/devops_tasks/setup_execute_tests.py -p python3 "$(build_targeting_string)"
@@ -207,10 +189,8 @@ jobs:
207
189
- script : |
208
190
cd ~/
209
191
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-linux64.tar.bz2
210
- tar xf pypy3-v6.0.0-linux64.tar.bz2
211
-
212
- cd $(Build.SourcesDirectory)
213
-
192
+ tar xf pypy3-v6.0.0-linux64.tar.bz2
193
+ cd $(Build.SourcesDirectory)
214
194
PATH=/home/vsts/pypy3-v6.0.0-linux64/bin/:$PATH
215
195
pypy3 -m ensurepip
216
196
python ./scripts/devops_tasks/setup_execute_tests.py -p pypy3 "$(build_targeting_string)"
0 commit comments