1- parameters :
2- sudo_dependencies : sudo
3- dependencies : apt
4- patchcheck : true
5- xvfb : true
6-
71steps :
82- checkout : self
93 clean : true
137- script : sudo setfacl -Rb /home/vsts
148 displayName : ' Workaround ACL issue'
159
16- - script : ${{ parameters.sudo_dependencies }} . /.azure-pipelines/posix-deps-${{ parameters.dependencies }} .sh $(openssl_version)
10+ - script : sudo . /.azure-pipelines/posix-deps-apt .sh $(openssl_version)
1711 displayName : ' Install dependencies'
1812
1913- script : ./configure --with-pydebug
@@ -25,27 +19,8 @@ steps:
2519- script : make pythoninfo
2620 displayName : ' Display build info'
2721
28- - script : $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
29- displayName : ' Tests'
30- env :
31- ${{ if eq(parameters.xvfb, 'true') }} :
32- COMMAND : xvfb-run make
33- ${{ if ne(parameters.xvfb, 'true') }} :
34- COMMAND : make
35-
36- - ${{ if eq(parameters.patchcheck, 'true') }} :
37- - script : |
38- git fetch origin
39- ./python Tools/patchcheck/patchcheck.py --ci true
40- displayName: 'Run patchcheck.py'
41- condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
42-
43-
44- - task : PublishTestResults@2
45- displayName : ' Publish Test Results'
46- inputs :
47- testResultsFiles : ' $(build.binariesDirectory)/test-results.xml'
48- mergeTestResults : true
49- testRunTitle : $(testRunTitle)
50- platform : $(testRunPlatform)
51- condition : succeededOrFailed()
22+ - script : |
23+ git fetch origin
24+ ./python Tools/patchcheck/patchcheck.py --ci true
25+ displayName : ' Run patchcheck.py'
26+ condition : and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
0 commit comments