-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
181 lines (154 loc) · 3.68 KB
/
.gitlab-ci.yml
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
---
include:
- project: "Bigouden/gitlab-ci-templates"
file: ".gitlab-ci-docker.yml"
- project: "Bigouden/gitlab-ci-templates"
file: ".gitlab-ci-prometheus.yml"
.standalone:
image:
name: $CONTAINER_TEST_IMAGE
entrypoint: [""]
variables:
GIT_STRATEGY: none
dependencies: []
stages:
- Quality
- Security
- Build
- Commands
- Collections
- Python Modules
- Test
- Inspect
- Release
- Clean
- Trigger
Ansible:
stage: Commands
extends: .standalone
script:
- ansible --version
Ansible Galaxy:
stage: Commands
extends: .standalone
script:
- ansible-galaxy --version
Ansible Lint:
stage: Commands
extends: .standalone
script:
- ansible-lint --version
Ansible Playbook:
stage: Commands
extends: .standalone
script:
- ansible-playbook --version
Ansible Vault:
stage: Commands
extends: .standalone
script:
- ansible-vault --version
Git CLI:
stage: Commands
extends: .standalone
script:
- git version
Git Filter Repo CLI:
stage: Commands
extends: .standalone
script:
- git-filter-repo --version
Netcommon:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep ansible.netcommon
Posix:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep ansible.posix
Crypto:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep community.crypto
General:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep community.general
Kubernetes:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep kubernetes.core
Cloud:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep google.cloud
Docker:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep community.docker
Postgresql:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep community.postgresql
Mongodb:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep community.mongodb
MySQL:
stage: Collections
extends: .standalone
script:
- ansible-galaxy collection list | grep community.mysql
Python Bcrypt:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('bcrypt') else 1)"
Python Git:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('git') else 1)"
Python Github:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('github') else 1)"
Python Gitlab:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('gitlab') else 1)"
Python MySQL:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('MySQLdb') else 1)"
Python Passlib:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('passlib') else 1)"
Python Pip:
stage: Python Modules
extends: .standalone
script:
- python3 -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('pip') else 1)"
Build ansible-home:
stage: Trigger
trigger:
project: $CI_PROJECT_NAMESPACE/ansible-home
branch: $CI_DEFAULT_BRANCH
inherit:
variables: false
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'