| 1 |
trigger: |
| 2 |
batch: true |
| 3 |
branches: |
| 4 |
include: |
| 5 |
- main |
| 6 |
- stable-* |
| 7 |
|
| 8 |
pr: |
| 9 |
autoCancel: true |
| 10 |
branches: |
| 11 |
include: |
| 12 |
- main |
| 13 |
- stable-* |
| 14 |
|
| 15 |
schedules: |
| 16 |
- cron: 0 9 * * * |
| 17 |
displayName: Nightly |
| 18 |
always: true |
| 19 |
branches: |
| 20 |
include: |
| 21 |
- main |
| 22 |
- stable-* |
| 23 |
|
| 24 |
variables: |
| 25 |
- name: checkoutPath |
| 26 |
value: ansible_collections/community/postgresql |
| 27 |
- name: coverageBranches |
| 28 |
value: main |
| 29 |
- name: pipelinesCoverage |
| 30 |
value: coverage |
| 31 |
- name: entryPoint |
| 32 |
value: tests/utils/shippable/shippable.sh |
| 33 |
- name: fetchDepth |
| 34 |
value: 0 |
| 35 |
|
| 36 |
resources: |
| 37 |
containers: |
| 38 |
- container: default |
| 39 |
image: quay.io/ansible/azure-pipelines-test-container:7.0.0 |
| 40 |
|
| 41 |
pool: Standard |
| 42 |
|
| 43 |
stages: |
| 44 |
- stage: Python_qualtiy_tools |
| 45 |
displayName: Python quality |
| 46 |
dependsOn: [] |
| 47 |
jobs: |
| 48 |
- job: 'Test' |
| 49 |
pool: |
| 50 |
vmImage: 'ubuntu-latest' |
| 51 |
steps: |
| 52 |
- task: UsePythonVersion@0 |
| 53 |
displayName: Get Python for Python tools. |
| 54 |
inputs: |
| 55 |
versionSpec: '3.11' |
| 56 |
addToPath: false |
| 57 |
name: pyTools |
| 58 |
- script: $(pyTools.pythonLocation)/bin/pip install --upgrade tox |
| 59 |
displayName: Upgrade/Install tox. |
| 60 |
- script: $(pyTools.pythonLocation)/bin/tox -e lint |
| 61 |
displayName: Run tox -e lint |
| 62 |
|
| 63 |
|
| 64 |
- stage: Ansible_devel |
| 65 |
displayName: Sanity & Units devel |
| 66 |
dependsOn: [] |
| 67 |
jobs: |
| 68 |
- template: templates/matrix.yml |
| 69 |
parameters: |
| 70 |
targets: |
| 71 |
- name: Sanity |
| 72 |
test: 'devel/sanity/1' |
| 73 |
- name: Units |
| 74 |
test: 'devel/units/1' |
| 75 |
|
| 76 |
- stage: Ansible_2_20 |
| 77 |
displayName: Sanity & Units 2.20 |
| 78 |
dependsOn: [] |
| 79 |
jobs: |
| 80 |
- template: templates/matrix.yml |
| 81 |
parameters: |
| 82 |
targets: |
| 83 |
- name: Sanity |
| 84 |
test: '2.20/sanity/1' |
| 85 |
- name: Units |
| 86 |
test: '2.20/units/1' |
| 87 |
|
| 88 |
- stage: Ansible_2_19 |
| 89 |
displayName: Sanity & Units 2.19 |
| 90 |
dependsOn: [] |
| 91 |
jobs: |
| 92 |
- template: templates/matrix.yml |
| 93 |
parameters: |
| 94 |
targets: |
| 95 |
- name: Sanity |
| 96 |
test: '2.19/sanity/1' |
| 97 |
- name: Units |
| 98 |
test: '2.19/units/1' |
| 99 |
|
| 100 |
- stage: Ansible_2_18 |
| 101 |
displayName: Sanity & Units 2.18 |
| 102 |
dependsOn: [] |
| 103 |
jobs: |
| 104 |
- template: templates/matrix.yml |
| 105 |
parameters: |
| 106 |
targets: |
| 107 |
- name: Sanity |
| 108 |
test: '2.18/sanity/1' |
| 109 |
- name: Units |
| 110 |
test: '2.18/units/1' |
| 111 |
|
| 112 |
- stage: Ansible_2_17 |
| 113 |
displayName: Sanity & Units 2.17 |
| 114 |
dependsOn: [] |
| 115 |
jobs: |
| 116 |
- template: templates/matrix.yml |
| 117 |
parameters: |
| 118 |
targets: |
| 119 |
- name: Sanity |
| 120 |
test: '2.17/sanity/1' |
| 121 |
- name: Units |
| 122 |
test: '2.17/units/1' |
| 123 |
|
| 124 |
|
| 125 |
- stage: Docker_devel |
| 126 |
displayName: Docker devel |
| 127 |
dependsOn: [] |
| 128 |
jobs: |
| 129 |
- template: templates/matrix.yml |
| 130 |
parameters: |
| 131 |
testFormat: devel/linux/{0}/1 |
| 132 |
targets: |
| 133 |
- name: Fedora 42 |
| 134 |
test: fedora42 |
| 135 |
- name: Ubuntu 24.04 |
| 136 |
test: ubuntu2404 |
| 137 |
- name: Ubuntu 22.04 |
| 138 |
test: ubuntu2204 |
| 139 |
|
| 140 |
- stage: Docker_2_20 |
| 141 |
displayName: Docker 2.20 |
| 142 |
dependsOn: [] |
| 143 |
jobs: |
| 144 |
- template: templates/matrix.yml |
| 145 |
parameters: |
| 146 |
testFormat: 2.20/linux/{0}/1 |
| 147 |
targets: |
| 148 |
- name: Fedora 42 |
| 149 |
test: fedora42 |
| 150 |
- name: Ubuntu 24.04 |
| 151 |
test: ubuntu2404 |
| 152 |
- name: Ubuntu 22.04 |
| 153 |
test: ubuntu2204 |
| 154 |
|
| 155 |
- stage: Docker_2_19 |
| 156 |
displayName: Docker 2.19 |
| 157 |
dependsOn: [] |
| 158 |
jobs: |
| 159 |
- template: templates/matrix.yml |
| 160 |
parameters: |
| 161 |
testFormat: 2.19/linux/{0}/1 |
| 162 |
targets: |
| 163 |
- name: Fedora 41 |
| 164 |
test: fedora41 |
| 165 |
- name: Ubuntu 24.04 |
| 166 |
test: ubuntu2404 |
| 167 |
- name: Ubuntu 22.04 |
| 168 |
test: ubuntu2204 |
| 169 |
|
| 170 |
- stage: Docker_2_18 |
| 171 |
displayName: Docker 2.18 |
| 172 |
dependsOn: [] |
| 173 |
jobs: |
| 174 |
- template: templates/matrix.yml |
| 175 |
parameters: |
| 176 |
testFormat: 2.18/linux/{0}/1 |
| 177 |
targets: |
| 178 |
- name: Fedora 40 |
| 179 |
test: fedora40 |
| 180 |
- name: Ubuntu 22.04 |
| 181 |
test: ubuntu2204 |
| 182 |
|
| 183 |
- stage: Docker_2_17 |
| 184 |
displayName: Docker 2.17 |
| 185 |
dependsOn: [] |
| 186 |
jobs: |
| 187 |
- template: templates/matrix.yml |
| 188 |
parameters: |
| 189 |
testFormat: 2.17/linux/{0}/1 |
| 190 |
targets: |
| 191 |
- name: Fedora 39 |
| 192 |
test: fedora39 |
| 193 |
- name: Ubuntu 22.04 |
| 194 |
test: ubuntu2204 |
| 195 |
|
| 196 |
|
| 197 |
- stage: Remote_devel |
| 198 |
displayName: Remote devel |
| 199 |
dependsOn: [] |
| 200 |
jobs: |
| 201 |
- template: templates/matrix.yml |
| 202 |
parameters: |
| 203 |
testFormat: devel/{0}/1 |
| 204 |
targets: |
| 205 |
- name: RHEL 10.0 |
| 206 |
test: rhel/10.0 |
| 207 |
- name: RHEL 9.6 |
| 208 |
test: rhel/9.6 |
| 209 |
|
| 210 |
- stage: Remote_2_20 |
| 211 |
displayName: Remote 2.20 |
| 212 |
dependsOn: [] |
| 213 |
jobs: |
| 214 |
- template: templates/matrix.yml |
| 215 |
parameters: |
| 216 |
testFormat: 2.20/{0}/1 |
| 217 |
targets: |
| 218 |
- name: RHEL 10.0 |
| 219 |
test: rhel/10.0 |
| 220 |
- name: RHEL 9.6 |
| 221 |
test: rhel/9.6 |
| 222 |
|
| 223 |
- stage: Remote_2_19 |
| 224 |
displayName: Remote 2.19 |
| 225 |
dependsOn: [] |
| 226 |
jobs: |
| 227 |
- template: templates/matrix.yml |
| 228 |
parameters: |
| 229 |
testFormat: 2.19/{0}/1 |
| 230 |
targets: |
| 231 |
- name: RHEL 9.5 |
| 232 |
test: rhel/9.5 |
| 233 |
|
| 234 |
- stage: Remote_2_18 |
| 235 |
displayName: Remote devel |
| 236 |
dependsOn: [] |
| 237 |
jobs: |
| 238 |
- template: templates/matrix.yml |
| 239 |
parameters: |
| 240 |
testFormat: 2.18/{0}/1 |
| 241 |
targets: |
| 242 |
- name: RHEL 9.4 |
| 243 |
test: rhel/9.4 |
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
- stage: Summary |
| 248 |
condition: succeededOrFailed() |
| 249 |
dependsOn: |
| 250 |
- Ansible_devel |
| 251 |
- Ansible_2_20 |
| 252 |
- Ansible_2_19 |
| 253 |
- Ansible_2_18 |
| 254 |
- Ansible_2_17 |
| 255 |
- Docker_devel |
| 256 |
- Docker_2_20 |
| 257 |
- Docker_2_19 |
| 258 |
- Docker_2_18 |
| 259 |
- Docker_2_17 |
| 260 |
- Remote_devel |
| 261 |
- Remote_2_20 |
| 262 |
- Remote_2_19 |
| 263 |
- Remote_2_18 |
| 264 |
jobs: |
| 265 |
- template: templates/coverage.yml |