forked from veepee-oss/puppet-influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
173 lines (149 loc) · 3.6 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
---
# https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
stages:
- commit
- syntax
- test-centos
- test-debian
- test-devuan
- test-ubuntu
- module
# commit
git-history:
stage: commit
script:
- >
bash <(curl --fail --location --silent --show-error
https://git.io/vxIxF)
lines-length:
stage: commit
script:
- >
bash <(curl --fail --location --silent --show-error
https://git.io/vxIxN)
80 templates/* files/*
# syntax
erb-lint:
stage: syntax
image: vpgrp/linter:puppet
script:
- rails-erb-lint check --path=templates
json-lint:
stage: syntax
image: vpgrp/linter:puppet
script:
- metadata-json-lint metadata.json
markdown-lint:
stage: syntax
image: vpgrp/linter:markdown
script:
- markdown-lint README.md
puppet-lint:
stage: syntax
image: vpgrp/linter:puppet
script:
- puppet-lint --fail-on-warnings .
rubocop:
stage: syntax
image: vpgrp/linter:ruby
script:
- rubocop .
yaml-lint:
stage: syntax
image: vpgrp/linter:yaml
script:
- yaml-lint .gitlab-ci.yml
- yaml-lint .kitchen.yml
- yaml-lint .puppetforge.yml
# puppet
# centos-6:
# stage: test-centos
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color centos-centos-6
# centos-7:
# stage: test-centos
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color centos-centos-7
# Ruby 1.9 issue with Debian 5
# debian-5:
# stage: test-debian
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color debian-debian-5
# - kitchen test --destroy=always --color debian-debian-5-bpo
# allow_failure: true
# debian-6:
# stage: test-debian
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color debian-debian-6
# - kitchen test --destroy=always --color debian-debian-6-bpo
# allow_failure: true
# debian-7:
# stage: test-debian
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color debian-debian-7
# - kitchen test --destroy=always --color debian-debian-7-bpo
#debian-8:
# stage: test-debian
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color debian-debian-8
# - kitchen test --destroy=always --color debian-debian-8-bpo
debian-9:
stage: test-debian
image: vpgrp/kitchen
script:
- kitchen test --destroy=always --color debian-debian-9
# debian-10:
# stage: test-debian
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color debian-debian-10
# - kitchen test --destroy=always --color debian-debian-10-bpo
# Serverspec issue with Devuan 1
# devuan-1:
# stage: test-devuan
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color devuan-devuan-1
# allow_failure: true
# Ruby 1.9 issue with Ubuntu 10.04
# ubuntu-10.04:
# stage: test-ubuntu
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color ubuntu-ubuntu-10-04
# allow_failure: true
# ubuntu-12.04:
# stage: test-ubuntu
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color ubuntu-ubuntu-12-04
# ubuntu-14.04:
# stage: test-ubuntu
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color ubuntu-ubuntu-14-04
# ubuntu-16.04:
# stage: test-ubuntu
# image: vpgrp/kitchen
# script:
# - kitchen test --destroy=always --color ubuntu-ubuntu-16-04
# create module
create-module:
stage: module
image: vpgrp/puppet
script:
- puppet module build
publish-module:
stage: module
only:
- master
image: vpgrp/puppet
script:
- rake module:push
# EOF