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

148 lines
3 KiB
YAML
Raw Normal View History

2021-02-03 11:40:48 +00:00
trigger:
batch: true
branches:
include:
2021-03-26 09:08:48 +00:00
- main
2021-02-03 11:40:48 +00:00
pr:
autoCancel: true
branches:
include:
2021-03-26 09:08:48 +00:00
- main
2021-02-03 11:40:48 +00:00
schedules:
- cron: 0 9 * * *
displayName: Nightly
always: true
branches:
include:
2021-03-26 09:08:48 +00:00
- main
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/shippable/shippable.sh
- name: fetchDepth
value: 0
resources:
containers:
- container: default
image: quay.io/ansible/azure-pipelines-test-container:1.9.0
2021-02-03 11:40:48 +00:00
pool: Standard
stages:
### Sanity
2021-02-03 11:40:48 +00:00
- stage: Ansible_devel
displayName: Sanity devel
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: 'devel/sanity/1'
- stage: Ansible_2_11
displayName: Sanity 2.11
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: '2.11/sanity/1'
2021-02-03 11:40:48 +00:00
- stage: Ansible_2_10
displayName: Sanity & Units 2.10
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: '2.10/sanity/1'
- stage: Ansible_2_9
displayName: Sanity 2.9
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: '2.9/sanity/1'
## Integration tests (remote)
- stage: Hetzner_devel
displayName: Hetzner devel
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups:
- 1
- 2
targets:
- name: hcloud
test: 'devel/hcloud/3.8'
- stage: Hetzner_2_11
displayName: Hetzner 2.11
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups:
- 1
- 2
targets:
- name: hcloud
test: '2.11/hcloud/3.8'
2021-02-03 11:40:48 +00:00
- stage: Hetzner_2_10
displayName: Hetzner 2.10
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups:
- 1
- 2
- 3
targets:
- name: hcloud
test: '2.10/hcloud/3.8'
2021-02-03 11:40:48 +00:00
- stage: Hetzner_2_9
displayName: Hetzner 2.9
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
groups:
- 1
- 2
- 3
targets:
- name: hcloud
test: '2.9/hcloud/3.8'
2021-02-03 11:40:48 +00:00
### Finally
- stage: Summary
condition: succeededOrFailed()
dependsOn:
- Ansible_devel
- Ansible_2_11
2021-02-03 11:59:48 +00:00
- Ansible_2_10
- Ansible_2_9
2021-02-03 11:40:48 +00:00
- Hetzner_devel
- Hetzner_2_11
2021-02-03 11:40:48 +00:00
- Hetzner_2_10
- Hetzner_2_9
jobs:
- template: templates/coverage.yml