1
- parameters :
2
- sudo_dependencies : sudo
3
- dependencies : apt
4
- patchcheck : true
5
- xvfb : true
6
-
7
1
steps :
8
2
- checkout : self
9
3
clean : true
13
7
- script : sudo setfacl -Rb /home/vsts
14
8
displayName : ' Workaround ACL issue'
15
9
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)
17
11
displayName : ' Install dependencies'
18
12
19
13
- script : ./configure --with-pydebug
@@ -25,27 +19,8 @@ steps:
25
19
- script : make pythoninfo
26
20
displayName : ' Display build info'
27
21
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