Skip to content

Commit 4ee7074

Browse files
committed
Incorporating suggestions
1 parent 112b221 commit 4ee7074

File tree

1 file changed

+15
-35
lines changed

1 file changed

+15
-35
lines changed

.azure-pipelines/client.yml

+15-35
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
# 'long_running_tests' Is a boolean indicating that the long-running tests should be executed.
55
# 'EnableDetectorPip': true . Required for Component Governance Support
66

7-
87
trigger:
98
- master
9+
variables:
10+
python.version: '3.6'
1011

1112
jobs:
1213
- job: 'Build_Target_Packages'
13-
1414
pool:
1515
vmImage: 'ubuntu-16.04'
16-
1716
steps:
1817
- task: UsePythonVersion@0
19-
displayName: 'Use Python 3.6'
18+
displayName: 'Use Python $(python.version)'
2019
inputs:
21-
versionSpec: 3.6
20+
versionSpec: $(python.version)
2221

2322
- script: |
2423
pip install wheel setuptools pathlib twine readme-renderer[md]
@@ -34,31 +33,20 @@ jobs:
3433
twine check $(Build.ArtifactStagingDirectory)/*
3534
displayName: 'Verify Readme'
3635
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-
4536
- task: PublishBuildArtifacts@1
4637
displayName: 'Publish Artifacts'
4738
condition: succeededOrFailed()
4839

4940
- job: 'Analyze'
5041
dependsOn:
51-
- 'Build_Target_Packages'
52-
42+
- 'Build_Target_Packages'
5343
pool:
54-
vmImage: 'vs2017-win2016'
55-
56-
steps:
57-
44+
vmImage: 'ubuntu-16.04'
45+
steps:
5846
- task: UsePythonVersion@0
59-
displayName: 'Use Python 3.6'
47+
displayName: 'Use Python $(python.version)'
6048
inputs:
61-
versionSpec: 3.6
49+
versionSpec: $(python.version)
6250

6351
- script: |
6452
pip install wheel Jinja2
@@ -69,9 +57,11 @@ jobs:
6957
enabled: true
7058
inputs:
7159
scriptPath: 'scripts/analyze_deps.py'
72-
arguments: '--verbose --out "$(Build.SourcesDirectory)/dependencies.html"'
60+
arguments: '--verbose --out "$(Build.ArtifactStagingDirectory)/dependencies.html"'
7361

7462
- 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.
7565
condition: and(always(), ne(variables['System.TeamProject'], 'public'))
7666
displayName: 'Component Detection'
7767

@@ -110,7 +100,6 @@ jobs:
110100
python.version: '2.7'
111101
pool:
112102
vmImage: '$(os.vmImage)'
113-
114103
steps:
115104
- task: UsePythonVersion@0
116105
displayName: 'Use Python $(python.version)'
@@ -149,15 +138,10 @@ jobs:
149138
summaryFileLocation: '$(Build.SourcesDirectory)/coverage.xml'
150139
reportDirectory: '$(Build.SourcesDirectory)/htmlcov'
151140

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-
156141
- job: Test_Alpha_Python
157142
timeoutInMinutes: 90
158143
condition: eq(variables['long_running_tests'], True)
159144

160-
161145
- job: Special_Python_Distro_Tests
162146
dependsOn:
163147
- 'Build_Target_Packages'
@@ -177,10 +161,8 @@ jobs:
177161
mkdir debug
178162
cd debug
179163
../configure --enable-optimizations --prefix=$HOME
180-
make install
181-
164+
make install
182165
cd $(Build.SourcesDirectory)
183-
184166
PATH=/home/vsts/bin:$PATH
185167
python3 -m ensurepip
186168
python ./scripts/devops_tasks/setup_execute_tests.py -p python3 "$(build_targeting_string)"
@@ -207,10 +189,8 @@ jobs:
207189
- script: |
208190
cd ~/
209191
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)
214194
PATH=/home/vsts/pypy3-v6.0.0-linux64/bin/:$PATH
215195
pypy3 -m ensurepip
216196
python ./scripts/devops_tasks/setup_execute_tests.py -p pypy3 "$(build_targeting_string)"

0 commit comments

Comments
 (0)