/
ansible-collection-jobs.yaml
142 lines (131 loc) · 3.74 KB
/
ansible-collection-jobs.yaml
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
---
- job:
name: ansible-collection-build
description: |
Build ansible collection
parent: unittests
run: playbooks/ansible-collection/build.yaml
vars:
python_version: 3.9
- job:
name: ansible-collection-install
description: |
Install ansible collection
parent: unittests
run: playbooks/ansible-collection/install.yaml
vars:
python_version: 3.9
- job:
name: ansible-collection-publish
description: |
Publish ansible collection
parent: unittests
run: playbooks/ansible-collection/build.yaml
post-run: playbooks/ansible-collection/publish.yaml
vars:
python_version: 3.9
- job:
name: ansible-collection-test-base
parent: unittests
abstract: true
description: |
Execute ansible-test for the collection
pre-run: playbooks/ansible-test-base/pre.yaml
run: playbooks/ansible-test-base/run.yaml
vars:
python_version: "3.9"
ansible_test_collections: true
- job:
name: ansible-collection-test-sanity
parent: ansible-collection-test-base
description: |
Execute ansible-test sanity for the collection
vars:
ansible_test_test_command: "sanity"
ansible_test_skip_tests:
- metaclass-boilerplate
- future-import-boilerplate
- job:
name: ansible-collection-test-units
parent: ansible-collection-test-base
description: |
Execute ansible-test units for the collection
voting: false
vars:
ansible_test_test_command: "units"
ansible_test_no_temp_unicode: true
- job:
name: ansible-collection-test-integration
parent: ansible-collection-test-base
description: |
Execute ansible-test integration for the collection
vars:
ansible_test_test_command: "integration"
ansible_test_no_temp_unicode: true
- job:
name: ansible-collection-docs
description: |
Build Ansible collection docs.
nodeset: fedora-pod
pre-run:
- playbooks/ansible-collection/pre_docs.yaml
run: playbooks/ansible-collection/build_docs.yaml
post-run: playbooks/ansible-collection/post_docs.yaml
vars:
python_version: 3.9
sphinx_python: python3
# Linters
- job:
name: tox-linters-ansible-devel
parent: otc-tox-linters
description: |
Run openstack collections linter tests using the devel branch of ansible
# non-voting because we can't prevent ansible devel from breaking us
voting: false
nodeset: ubuntu-focal
required-projects:
- name: ansible/ansible
override-checkout: devel
- job:
name: tox-linters-ansible-2.10
parent: otc-tox-linters
description: |
Run openstack collections linter tests using the 2.10 branch of ansible
voting: true
required-projects:
- name: ansible/ansible
override-checkout: stable-2.10
- job:
name: tox-linters-ansible-2.9
parent: otc-tox-linters
description: |
Run openstack collections linter tests using the 2.9 branch of ansible
voting: true
required-projects:
- name: ansible/ansible
override-checkout: stable-2.9
vars:
tox_envlist: linters-29
# - job:
# name: ansible-collection-test-sanity-old
# parent: tox
# description: |
# Run ansible integration tests on the collection under tox
# voting: true
# required-projects:
# - name: ansible/ansible
# override-checkout: stable-2.9
# vars:
# tox_envlist: sanity
#
# - job:
# name: ansible-collection-test-integration
# parent: tox
# description: |
# Run ansible integration tests on the collection under tox
# voting: true
# required-projects:
# - name: ansible/ansible
# override-checkout: stable-2.9
# vars:
# tox_envlist: integration