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

127 lines
2.6 KiB
YAML
Raw Normal View History

2021-02-03 11:40:48 +00:00
trigger:
batch: true
branches:
include:
- main
- stable-*
pr:
autoCancel: true
branches:
include:
- main
- stable-*
schedules:
- cron: 0 9 * * *
displayName: Nightly
always: true
branches:
include:
- main
- stable-*
variables:
- name: checkoutPath
value: ansible_collections/hetzner/hcloud
- name: coverageBranches
value: main
- 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.7.1
pool: Standard
stages:
### Sanity
- stage: Ansible_devel
displayName: Sanity devel
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
targets:
- name: Sanity
test: 'devel/sanity/1'
- 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:
nameFormat: Python 3.8 {0}
testFormat: devel/hcloud/3.8/{0}
targets:
- test: ''
groups:
- 1
- 2
- stage: Hetzner_2_10
displayName: Hetzner 2.10
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
nameFormat: Python 3.8 {0}
testFormat: 2.10/hcloud/3.8/{0}
targets:
- test: ''
groups:
- 1
- 2
- 3
- stage: Hetzner_2_9
displayName: Hetzner 2.9
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
nameFormat: Python 3.8 {0}
testFormat: 2.9/hcloud/3.8/{0}
targets:
- test: ''
groups:
- 1
- 2
- 3
### Finally
- stage: Summary
condition: succeededOrFailed()
dependsOn:
- Ansible_devel
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_10
- Hetzner_2_9
jobs:
- template: templates/coverage.yml