blob: 6c2c1acc286c081062311c48465fb1d19b69d640 [file] [log] [blame]
Steve Dower57675092018-09-24 07:44:50 -04001variables:
2 manylinux: false
3 coverage: false
4
Steve Dower28f6cb32019-01-22 10:49:52 -08005resources:
6 containers:
7 - container: manylinux1
8 image: pyca/cryptography-manylinux1:x86_64
9
Steve Dower57675092018-09-24 07:44:50 -040010jobs:
11- job: Prebuild
12 displayName: Pre-build checks
13
14 pool:
15 vmImage: ubuntu-16.04
16
17 steps:
18 - template: ./prebuild-checks.yml
19
20
21- job: Docs_PR
22 displayName: Docs PR
23 dependsOn: Prebuild
24 condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
25
26 pool:
27 vmImage: ubuntu-16.04
28
29 steps:
30 - template: ./docs-steps.yml
31 parameters:
32 upload: true
33
34
35- job: macOS_CI_Tests
36 displayName: macOS CI Tests
37 dependsOn: Prebuild
Steve Dower31350f92020-03-07 00:11:47 +000038 #condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
39 # bpo-39837: macOS tests on Azure Pipelines are disabled
40 condition: false
Steve Dower57675092018-09-24 07:44:50 -040041
42 variables:
43 testRunTitle: '$(build.sourceBranchName)-macos'
44 testRunPlatform: macos
45
46 pool:
Steve Dower801f9252019-09-10 16:53:03 +010047 vmImage: macos-10.14
Steve Dower57675092018-09-24 07:44:50 -040048
49 steps:
50 - template: ./macos-steps.yml
51
52
53- job: Ubuntu_CI_Tests
54 displayName: Ubuntu CI Tests
55 dependsOn: Prebuild
56 condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
57
58 pool:
59 vmImage: ubuntu-16.04
60
61 variables:
62 testRunTitle: '$(build.sourceBranchName)-linux'
63 testRunPlatform: linux
Christian Heimes58ab1342019-09-11 18:45:52 +020064 openssl_version: 1.1.1d
Steve Dower57675092018-09-24 07:44:50 -040065
66 steps:
67 - template: ./posix-steps.yml
Steve Dower28f6cb32019-01-22 10:49:52 -080068 parameters:
69 dependencies: apt
Steve Dower57675092018-09-24 07:44:50 -040070
71
72- job: ManyLinux1_CI_Tests
73 displayName: ManyLinux1 CI Tests
74 dependsOn: Prebuild
75 condition: |
76 and(
77 and(
78 succeeded(),
79 eq(variables['manylinux'], 'true')
80 ),
81 eq(dependencies.Prebuild.outputs['tests.run'], 'true')
82 )
83
84 pool:
85 vmImage: ubuntu-16.04
86
Steve Dower28f6cb32019-01-22 10:49:52 -080087 container: manylinux1
88
Steve Dower57675092018-09-24 07:44:50 -040089 variables:
90 testRunTitle: '$(build.sourceBranchName)-manylinux1'
91 testRunPlatform: manylinux1
Steve Dower28f6cb32019-01-22 10:49:52 -080092 openssl_version: ''
Steve Dower57675092018-09-24 07:44:50 -040093
94 steps:
Steve Dower28f6cb32019-01-22 10:49:52 -080095 - template: ./posix-steps.yml
96 parameters:
97 dependencies: yum
98 sudo_dependencies: ''
99 xvfb: false
100 patchcheck: false
Steve Dower57675092018-09-24 07:44:50 -0400101
102
103- job: Ubuntu_Coverage_CI_Tests
104 displayName: Ubuntu CI Tests (coverage)
105 dependsOn: Prebuild
106 condition: |
107 and(
108 and(
109 succeeded(),
110 eq(variables['coverage'], 'true')
111 ),
112 eq(dependencies.Prebuild.outputs['tests.run'], 'true')
113 )
114
115 pool:
116 vmImage: ubuntu-16.04
117
118 variables:
119 testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
120 testRunPlatform: linux-coverage
Christian Heimes58ab1342019-09-11 18:45:52 +0200121 openssl_version: 1.1.1d
Steve Dower57675092018-09-24 07:44:50 -0400122
123 steps:
124 - template: ./posix-steps.yml
125 parameters:
Steve Dower28f6cb32019-01-22 10:49:52 -0800126 dependencies: apt
Steve Dower57675092018-09-24 07:44:50 -0400127 coverage: true
128
129
130- job: Windows_CI_Tests
131 displayName: Windows CI Tests
132 dependsOn: Prebuild
133 condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
134
135 pool:
Steve Dower801f9252019-09-10 16:53:03 +0100136 vmImage: windows-2019
Steve Dower57675092018-09-24 07:44:50 -0400137
138 strategy:
139 matrix:
140 win32:
141 arch: win32
142 buildOpt:
143 testRunTitle: '$(Build.SourceBranchName)-win32'
144 testRunPlatform: win32
145 win64:
146 arch: amd64
147 buildOpt: '-p x64'
148 testRunTitle: '$(Build.SourceBranchName)-win64'
149 testRunPlatform: win64
Steve Dowerde148f22019-11-20 09:30:47 -0800150 maxParallel: 4
Steve Dower57675092018-09-24 07:44:50 -0400151
152 steps:
153 - template: ./windows-steps.yml
Steve Dower872bd2b2019-01-08 02:38:01 -0800154
155 - template: ./windows-layout-steps.yml
156 parameters:
157 kind: nuget
158 - template: ./windows-layout-steps.yml
159 parameters:
160 kind: embed
161 - template: ./windows-layout-steps.yml
162 parameters:
163 kind: appx
Steve Dower28f6cb32019-01-22 10:49:52 -0800164 fulltest: true