-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
172 lines (158 loc) · 4.33 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
---
stages:
- syntax
- unit
- acceptance
- release
cache:
paths:
- vendor/bundle
before_script:
- bundle -v
- rm Gemfile.lock || true
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.1-Puppet ~> 5.0:
stage: 'syntax'
image: 'ruby:2.5.1'
script:
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
variables:
PUPPET_GEM_VERSION: '~> 5.0'
parallel_spec-Ruby 2.5.1-Puppet ~> 5.0:
stage: 'unit'
image: 'ruby:2.5.1'
script:
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 5.0'
acceptance Puppet5 Ubuntu1604:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet5'
BEAKER_debug: 'true'
BEAKER_setfile: 'ubuntu1604-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet5 Ubuntu1804:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet5'
BEAKER_debug: 'true'
BEAKER_setfile: 'ubuntu1804-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet5 Debian9:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet5'
BEAKER_debug: 'true'
BEAKER_setfile: 'debian9-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet5 Debian10:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet5'
BEAKER_debug: 'true'
BEAKER_setfile: 'debian10-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet6 Ubuntu1604:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet6'
BEAKER_debug: 'true'
BEAKER_setfile: 'ubuntu1604-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet6 Ubuntu1804:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet6'
BEAKER_debug: 'true'
BEAKER_setfile: 'ubuntu1804-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet6 Debian9:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet6'
BEAKER_debug: 'true'
BEAKER_setfile: 'debian9-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
acceptance Puppet6 Debian10:
stage: 'acceptance'
variables:
RBENV_VERSION: '2.5.1'
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet6'
BEAKER_debug: 'true'
BEAKER_setfile: 'debian10-64ssp.m{hostname=ssp.example.com}-centos7-64ipa.a{hostname=ipa.example.com}'
BEAKER_HYPERVISOR: 'docker'
script:
- bundle exec rake beaker
tags:
- puppet-tests
module release:
stage: 'release'
variables:
RBENV_VERSION: '2.5.1'
script:
- pdk build
tags:
- puppet-tests
only:
- tags
except:
- branches
artifacts:
paths:
- pkg/
expire_in: '6 weeks'