summaryrefslogtreecommitdiffstats
path: root/ansible_collections/hetzner/hcloud/.azure-pipelines/azure-pipelines.yml
blob: d55524f27329461e11a9cb625c7aaf66c9721908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
trigger:
  batch: true
  branches:
    include:
      - main

pr:
  autoCancel: true
  branches:
    include:
      - main

schedules:
  - cron: 0 9 * * *
    displayName: Nightly
    always: true
    branches:
      include:
        - main

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:3.0.0

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_14
    displayName: Sanity 2.14
    dependsOn: []
    jobs:
      - template: templates/matrix.yml
        parameters:
          targets:
            - name: Sanity
              test: '2.14/sanity/1'
  - stage: Ansible_2_13
    displayName: Sanity 2.13
    dependsOn: []
    jobs:
      - template: templates/matrix.yml
        parameters:
          targets:
            - name: Sanity
              test: '2.13/sanity/1'
  - stage: Ansible_2_12
    displayName: Sanity 2.12
    dependsOn: []
    jobs:
      - template: templates/matrix.yml
        parameters:
          targets:
            - name: Sanity
              test: '2.12/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.9'

  - stage: Hetzner_2_14
    displayName: Hetzner 2.14
    dependsOn: []
    jobs:
      - template: templates/matrix.yml
        parameters:
          groups:
            - 1
            - 2
          targets:
            - name: hcloud
              test: '2.14/hcloud/3.9'

  - stage: Hetzner_2_13
    displayName: Hetzner 2.13
    dependsOn: []
    jobs:
      - template: templates/matrix.yml
        parameters:
          groups:
            - 1
            - 2
          targets:
            - name: hcloud
              test: '2.13/hcloud/3.9'

  - stage: Hetzner_2_12
    displayName: Hetzner 2.12
    dependsOn: []
    jobs:
      - template: templates/matrix.yml
        parameters:
          groups:
            - 1
            - 2
          targets:
            - name: hcloud
              test: '2.12/hcloud/3.9'

### Finally
  - stage: Summary
    condition: succeededOrFailed()
    dependsOn:
      - Ansible_devel
      - Ansible_2_14
      - Ansible_2_13
      - Ansible_2_12
      - Hetzner_devel
      - Hetzner_2_14
      - Hetzner_2_13
      - Hetzner_2_12
    jobs:
      - template: templates/coverage.yml