ansible-collection-hetzner-.../.azure-pipelines/azure-pipelines.yml

184 lines
3.8 KiB
YAML
Raw Permalink Normal View History

2021-02-03 11:40:48 +00:00
trigger:
batch: true
branches:
include: [main, stable-1]
2021-02-03 11:40:48 +00:00
pr:
autoCancel: true
drafts: false
2021-02-03 11:40:48 +00:00
branches:
include: [main, stable-1]
2021-02-03 11:40:48 +00:00
schedules:
- cron: 0 9 * * *
displayName: Nightly
always: true
branches:
include: [main, stable-1]
2021-02-03 11:40:48 +00:00
variables:
- name: checkoutPath
value: ansible_collections/hetzner/hcloud
- name: coverageBranches
2021-03-26 09:08:48 +00:00
value: main
2021-02-03 11:40:48 +00:00
- name: pipelinesCoverage
value: coverage
- name: entryPoint
value: tests/utils/ci.sh
2021-02-03 11:40:48 +00:00
- name: fetchDepth
value: 0
resources:
containers:
- container: default
image: quay.io/ansible/azure-pipelines-test-container:6.0.0
2021-02-03 11:40:48 +00:00
pool: Standard
stages:
### Sanity
- stage: Sanity_devel
2021-02-03 11:40:48 +00:00
displayName: Sanity devel
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: devel/sanity
- stage: Sanity_2_17
displayName: Sanity 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: 2.17/sanity
- stage: Sanity_2_16
displayName: Sanity 2.16
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: 2.16/sanity
- stage: Sanity_2_15
displayName: Sanity 2.15
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: 2.15/sanity
### Units
- stage: Units_devel
displayName: Units devel
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: (py3.13)
test: devel/units/3.13
- stage: Units_2_17
displayName: Units 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: (py3.10)
test: 2.17/units/3.10
- stage: Units_2_16
displayName: Units 2.16
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: (py3.10)
test: 2.16/units/3.10
- stage: Units_2_15
displayName: Units 2.15
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: (py3.9)
test: 2.15/units/3.9
## Integration
- stage: Integration_devel
displayName: Integration devel
2021-02-03 11:40:48 +00:00
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups: [1, 2, 3]
targets:
- name: (py3.13)
test: devel/integration/3.13
- stage: Integration_2_17
displayName: Integration 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups: [1, 2, 3]
targets:
- name: (py3.10)
test: 2.17/integration/3.10
- stage: Integration_2_16
displayName: Integration 2.16
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups: [1, 2, 3]
targets:
- name: (py3.10)
test: 2.16/integration/3.10
- stage: Integration_2_15
displayName: Integration 2.15
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups: [1, 2, 3]
targets:
- name: (py3.9)
test: 2.15/integration/3.9
### Finally
2021-02-03 11:40:48 +00:00
- stage: Summary
condition: succeededOrFailed()
dependsOn:
- Sanity_devel
- Sanity_2_17
- Sanity_2_16
- Sanity_2_15
- Units_devel
- Units_2_17
- Units_2_16
- Units_2_15
- Integration_devel
- Integration_2_17
- Integration_2_16
- Integration_2_15
2021-02-03 11:40:48 +00:00
jobs:
- template: templates/coverage.yml