simp-beaker-helpers 1.18.9 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6af360e25b0c27681121e57724c9440c886489aab74d9bff7a96f32a2fb1805d
4
- data.tar.gz: b9e0ea633c7e5a274e868abd4203fc3c02861a396f043cdc6c682ca550beacfd
3
+ metadata.gz: 3223751413072f7e62097c273b72fa130bcc083701b418c5927bd97897a9f9c5
4
+ data.tar.gz: 89c0620294618b21000ff2b79504df5bbe27f199b0bd4eb17ed69ce987d12899
5
5
  SHA512:
6
- metadata.gz: 0430e3ab6942bc368478f64dfb8243d76975e25e48d78965d52c7c22b916c80c7ad509af4b63a646dad92d87587e6e5dcdf0a4650b6495e4c3e6138daa05c387
7
- data.tar.gz: e357315e04adadc555cb3ba8819e1a082c460a6c93c5842e3aa235c1d88faded4c2dea547b29c05689e5eb84de3ce76742d248c2645905f5756b9ddafd58592b
6
+ metadata.gz: 9179b27932ec80ecfddb09eb4ea2ba778c99513e31d341d7a85606f63ed85e152af7686b90f5e0a46ee11c50dd5aafe300f148069d6d4a87515fdb7e034fa8ed
7
+ data.tar.gz: a05d10fdcdc609bcc9e2886b19f856304b8b2386d0377ad0680c0d712a1d6fdad2619908267fc196f55dfaa5339452abc1638d428431d4ce4171689b017519d3
@@ -0,0 +1,8 @@
1
+ ---
2
+ fixtures:
3
+ repositories:
4
+ fips: https://github.com/simp/pupmod-simp-fips
5
+ augeasproviders_core: https://github.com/simp/augeasproviders_core
6
+ augeasproviders_grub: https://github.com/simp/augeasproviders_grub
7
+ simplib: https://github.com/simp/pupmod-simp-simplib
8
+ stdlib: https://github.com/simp/puppetlabs-stdlib
@@ -2,5 +2,6 @@
2
2
  fixtures:
3
3
  repositories:
4
4
  stdlib: https://github.com/simp/puppetlabs-stdlib
5
+ simplib: https://github.com/simp/pupmod-simp-simplib
5
6
  compliance_markup: https://github.com/simp/pupmod-simp-compliance_markup
6
7
 
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .fips_fixtures.yml
1
2
  *.gem
2
3
  *.swp
3
4
  Gemfile.lock
@@ -1,131 +1,376 @@
1
+ # ------------------------------------------------------------------------------
2
+ # NOTICE: **This file is maintained with puppetsync**
3
+ #
4
+ # This file is updated automatically as part of a puppet module baseline.
5
+ #
6
+ # The next baseline sync will overwrite any local changes to everything above
7
+ # the line "# Repo-specific content"
8
+ # ------------------------------------------------------------------------------
9
+ # The testing matrix considers ruby/puppet versions supported by SIMP and PE:
10
+ #
11
+ # https://puppet.com/docs/pe/2019.8/component_versions_in_recent_pe_releases.html
12
+ # https://puppet.com/misc/puppet-enterprise-lifecycle
13
+ # https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
14
+ # ------------------------------------------------------------------------------
15
+ # Release Puppet Ruby EOL
16
+ # SIMP 6.4 5.5 2.4.10 TBD
17
+ # PE 2018.1 5.5 2.4.10 2021-01 (LTS overlap)
18
+ # PE 2019.8 6.18 2.5.7 2022-12 (LTS)
1
19
  ---
2
- .cache_bundler: &cache_bundler
20
+
21
+ stages:
22
+ - 'validation'
23
+ - 'acceptance'
24
+ - 'compliance'
25
+ - 'deployment'
26
+
27
+ variables:
28
+ # PUPPET_VERSION is a canary variable!
29
+ #
30
+ # The value `UNDEFINED` will (intentionally) cause `bundler install|update` to
31
+ # fail. The intended value for PUPPET_VERSION is provided by the `pup_#` YAML
32
+ # anchors. If it is still `UNDEFINED`, all the other setting from the job's
33
+ # anchor are also missing.
34
+ PUPPET_VERSION: 'UNDEFINED' # <- Matrixed jobs MUST override this (or fail)
35
+ BUNDLER_VERSION: '1.17.1'
36
+ SIMP_MATRIX_LEVEL: '1'
37
+ SIMP_FORCE_RUN_MATRIX: 'no'
38
+
39
+ # Force dependencies into a path the gitlab-runner user can write to.
40
+ # (This avoids some failures on Runners with misconfigured ruby environments.)
41
+ GEM_HOME: .vendor/gem_install
42
+ BUNDLE_CACHE_PATH: .vendor/bundle
43
+ BUNDLE_PATH: .vendor/bundle
44
+ BUNDLE_BIN: .vendor/gem_install/bin
45
+ BUNDLE_NO_PRUNE: 'true'
46
+
47
+
48
+ # bundler dependencies + caching, optional RVM setup, with diagnostic output
49
+ # --------------------------------------------------------------------------
50
+ .setup_bundler_env: &setup_bundler_env
3
51
  cache:
4
- untracked: true
5
- # A broad attempt at caching between runs (ala Travis CI)
6
- key: "${CI_PROJECT_NAMESPACE}__bundler"
52
+ # Cache bundler gems between pipelines for each Ruby version
53
+ key: "${CI_PROJECT_NAMESPACE}_ruby-${MATRIX_RUBY_VERSION}_bundler"
7
54
  paths:
8
55
  - '.vendor'
9
- - 'vendor'
10
-
11
- .setup_bundler_env: &setup_bundler_env
12
56
  before_script:
13
- - 'echo Files in cache: $(find .vendor | wc -l) || :'
14
- - 'export GEM_HOME=.vendor/gem_install'
15
- - 'export BUNDLE_CACHE_PATH=.vendor/bundler'
16
- - 'declare GEM_BUNDLER_VER=(-v ''~> ${BUNDLER_VERSION:-1.16.0}'')'
17
- - declare GEM_INSTALL=(gem install --no-document)
18
- - declare BUNDLER_INSTALL=(bundle install --no-binstubs --jobs $(nproc) --path=.vendor "${FLAGS[@]}")
19
- - gem list -ie "${GEM_BUNDLE_VER[@]}" --silent bundler || "${GEM_INSTALL[@]}" --local "${GEM_BUNDLE_VER[@]}" bundler || "${GEM_INSTALL[@]}" "${GEM_BUNDLE_VER[@]}" bundler
57
+ - 'ruby -e "puts %(\n\n), %q(=)*80, %(\nSIMP-relevant Environment Variables:\n\n#{e=ENV.keys.grep(/^PUPPET|^SIMP|^BEAKER|MATRIX/); pad=e.map{|x| x.size}.max+1; e.map{|v| %( * #{%(#{v}:).ljust(pad)} #{39.chr + ENV[v] + 39.chr}\n)}.join}\n), %q(=)*80, %(\n\n)"'
58
+ # Diagnostic ruby & gem information
59
+ - 'which ruby && ruby --version || :'
60
+ - "[[ $- == *i* ]] && echo 'Interactive shell session' || echo 'Non-interactive shell session'"
61
+ - "shopt -q login_shell && echo 'Login shell' || echo 'Not a login shell'"
62
+ - 'rvm ls || :'
63
+
64
+ # If RVM is available, make SURE it's using the right Ruby:
65
+ # * Source rvm (to run in non-login shells)
66
+ # * If any $MATRIX_RUBY_VERSION rubies are available, use the latest
67
+ # * Otherwise: install & use ${MATRIX_RUBY_VERSION}-head (e.g., latest)
68
+ # * ^^ This could be wonky and introduce variations across runners
69
+ # * ^^ maybe it should just fail if there is no $MATRIX_RUBY_VERSION installed?
70
+ - "command -v rvm && { if declare -p rvm_path &> /dev/null; then source \"${rvm_path}/scripts/rvm\"; else source \"$HOME/.rvm/scripts/rvm\" || source /etc/profile.d/rvm.sh; fi; }"
71
+ - "command -v rvm && { LATEST_RVM_RUBY_XY=\"$(rvm ls | grep \"$MATRIX_RUBY_VERSION\" | tail -1 | sed -e 's/^.*\\([0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\).*$/\\1/g')\"; if [ -z \"$LATEST_RVM_RUBY_XY\" ]; then LATEST_RVM_RUBY_XY=\"${MATRIX_RUBY_VERSION}-head\"; rvm install \"$LATEST_RVM_RUBY\" --no-docs; else echo \"Found RVM Ruby: '${LATEST_RVM_RUBY_XY}'\"; fi; rvm use \"$LATEST_RVM_RUBY_XY\" ; }"
72
+ - 'ruby --version || :'
73
+ - 'gem list sync || :'
74
+
75
+ # Bundle gems (preferring cached > local > downloaded resources)
76
+ # * Try to use cached and local resources before downloading dependencies
77
+ - 'declare GEM_BUNDLER_VER=(-v "~> ${BUNDLER_VERSION:-1.17.1}")'
78
+ - 'declare GEM_INSTALL_CMD=(gem install --no-document)'
79
+ - 'declare BUNDLER_INSTALL_CMD=(bundle install --no-binstubs --jobs $(nproc) "${FLAGS[@]}")'
80
+ - 'mkdir -p ${GEM_HOME} ${BUNDLER_BIN}'
81
+ - 'gem list -ie "${GEM_BUNDLER_VER[@]}" --silent bundler || "${GEM_INSTALL_CMD[@]}" --local "${GEM_BUNDLER_VER[@]}" bundler || "${GEM_INSTALL_CMD[@]}" "${GEM_BUNDLER_VER[@]}" bundler'
20
82
  - 'rm -rf pkg/ || :'
21
- - bundle check || rm -f Gemfile.lock && ("${BUNDLER_INSTALL[@]}" --local || "${BUNDLER_INSTALL[@]}")
83
+ - 'bundle check || rm -f Gemfile.lock && ("${BUNDLER_INSTALL_CMD[@]}" --local || "${BUNDLER_INSTALL_CMD[@]}" || bundle pristine || "${BUNDLER_INSTALL_CMD[@]}") || { echo "PIPELINE: Bundler could not install everything (see log output above)" && exit 99 ; }'
84
+
85
+ # Diagnostic bundler, ruby, and gem checks:
86
+ - 'bundle exec rvm ls || :'
87
+ - 'bundle exec which ruby || :'
88
+ - 'bundle show sync || :'
89
+ - 'bundle exec gem list sync || :'
90
+
91
+
92
+ # Assign a matrix level when your test will run. Heavier jobs get higher numbers
93
+ # NOTE: To skip all jobs with a SIMP_MATRIX_LEVEL, set SIMP_MATRIX_LEVEL=0
94
+ # ------------------------------------------------------------------------------
95
+
96
+ .relevant_file_conditions_trigger_spec_tests: &relevant_file_conditions_trigger_spec_tests
97
+ changes:
98
+ - .gitlab-ci.yml
99
+ - .fixtures.yml
100
+ - .rspec
101
+ - metadata.json
102
+ - "spec/spec_helper.rb"
103
+ - "spec/{classes,unit,defines,type_aliases,types,hosts,lib}/**/*.rb"
104
+ - "{SIMP,data,manifests,files,types,lib}/**/*"
105
+ - "templates/**/*.{erb,epp}"
106
+ - "Gemfile"
107
+ exists:
108
+ - "spec/{classes,unit,defines,type_aliases,types,hosts,lib}/**/*_spec.rb"
109
+
110
+ .relevant_file_conditions_trigger_acceptance_tests: &relevant_file_conditions_trigger_acceptance_tests
111
+ changes:
112
+ - .gitlab-ci.yml
113
+ - .fixtures.yml
114
+ - "spec/spec_helper_acceptance.rb"
115
+ - "spec/acceptance/**/*"
116
+ - "{SIMP,data,manifests,files,types,lib}/**/*"
117
+ - "templates/**/*.{erb,epp}"
118
+ - "Gemfile"
119
+ exists:
120
+ - "spec/acceptance/**/*_spec.rb"
121
+
122
+ # For some reason, the rule regexes stopped matching line starts inside
123
+ # $CI_COMMIT_MESSAGE with carets /^/, so we're using /\n?/ as a workaround.
124
+ .skip_job_when_commit_message_says_to: &skip_job_when_commit_message_says_to
125
+ if: '$CI_COMMIT_MESSAGE =~ /\n?CI: (SKIP MATRIX|MATRIX LEVEL 0)/'
126
+ when: never
127
+
128
+ .force_run_job_when_commit_message_lvl_1_or_above: &force_run_job_when_commit_mssage_lvl_1_or_above
129
+ if: '$CI_COMMIT_MESSAGE =~ /\n?CI: MATRIX LEVEL [123]/'
130
+ when: on_success
131
+
132
+ .force_run_job_when_commit_message_lvl_2_or_above: &force_run_job_when_commit_mssage_lvl_2_or_above
133
+ if: '$CI_COMMIT_MESSAGE =~ /\n?CI: MATRIX LEVEL [23]/'
134
+ when: on_success
135
+
136
+ .force_run_job_when_commit_message_lvl_3_or_above: &force_run_job_when_commit_mssage_lvl_3_or_above
137
+ if: '$CI_COMMIT_MESSAGE =~ /\n?CI: MATRIX LEVEL [3]/'
138
+ when: on_success
139
+
140
+ # check for $CI_PIPELINE_SOURCE needed because this is combined w/when:changes
141
+ .run_job_when_level_1_or_above_w_changes: &run_job_when_level_1_or_above_w_changes
142
+ if: '$SIMP_MATRIX_LEVEL =~ /^[123]$/ && $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
143
+ when: on_success
144
+
145
+ .run_job_when_level_2_or_above_w_changes: &run_job_when_level_2_or_above_w_changes
146
+ if: '$SIMP_MATRIX_LEVEL =~ /^[23]$/ && $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
147
+ when: on_success
22
148
 
23
- .spec_tests: &spec_tests
149
+ .run_job_when_level_3_or_above_w_changes: &run_job_when_level_3_or_above_w_changes
150
+ if: '$SIMP_MATRIX_LEVEL =~ /^[3]$/ && $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
151
+ when: on_success
152
+
153
+ .force_run_job_when_var_and_lvl_1_or_above: &force_run_job_when_var_and_lvl_1_or_above
154
+ if: '$SIMP_FORCE_RUN_MATRIX == "yes" && $SIMP_MATRIX_LEVEL =~ /^[123]$/'
155
+ when: on_success
156
+
157
+ .force_run_job_when_var_and_lvl_2_or_above: &force_run_job_when_var_and_lvl_2_or_above
158
+ if: '$SIMP_FORCE_RUN_MATRIX == "yes" && $SIMP_MATRIX_LEVEL =~ /^[23]$/'
159
+ when: on_success
160
+
161
+ .force_run_job_when_var_and_lvl_3_or_above: &force_run_job_when_var_and_lvl_3_or_above
162
+ if: '$SIMP_FORCE_RUN_MATRIX == "yes" && $SIMP_MATRIX_LEVEL =~ /^[3]$/'
163
+ when: on_success
164
+
165
+
166
+
167
+ # SIMP_MATRIX_LEVEL=1: Intended to run every commit
168
+ .with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1: &with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1
169
+ rules:
170
+ - <<: *skip_job_when_commit_message_says_to
171
+ - <<: *force_run_job_when_var_and_lvl_1_or_above
172
+ - <<: *force_run_job_when_commit_mssage_lvl_1_or_above
173
+ - <<: *run_job_when_level_1_or_above_w_changes
174
+ <<: *relevant_file_conditions_trigger_acceptance_tests
175
+ - when: never
176
+
177
+ .with_SIMP_SPEC_MATRIX_LEVEL_1: &with_SIMP_SPEC_MATRIX_LEVEL_1
178
+ rules:
179
+ - <<: *skip_job_when_commit_message_says_to
180
+ - <<: *force_run_job_when_commit_mssage_lvl_1_or_above
181
+ - <<: *force_run_job_when_var_and_lvl_1_or_above
182
+ - <<: *run_job_when_level_1_or_above_w_changes
183
+ <<: *relevant_file_conditions_trigger_spec_tests
184
+ - when: never
185
+
186
+ # SIMP_MATRIX_LEVEL=2: Resource-heavy or redundant jobs
187
+ .with_SIMP_ACCEPTANCE_MATRIX_LEVEL_2: &with_SIMP_ACCEPTANCE_MATRIX_LEVEL_2
188
+ rules:
189
+ - <<: *skip_job_when_commit_message_says_to
190
+ - <<: *force_run_job_when_var_and_lvl_2_or_above
191
+ - <<: *force_run_job_when_commit_mssage_lvl_2_or_above
192
+ - <<: *run_job_when_level_2_or_above_w_changes
193
+ <<: *relevant_file_conditions_trigger_acceptance_tests
194
+ - when: never
195
+
196
+ .with_SIMP_SPEC_MATRIX_LEVEL_2: &with_SIMP_SPEC_MATRIX_LEVEL_2
197
+ rules:
198
+ - <<: *skip_job_when_commit_message_says_to
199
+ - <<: *force_run_job_when_commit_mssage_lvl_2_or_above
200
+ - <<: *force_run_job_when_var_and_lvl_2_or_above
201
+ - <<: *run_job_when_level_2_or_above_w_changes
202
+ <<: *relevant_file_conditions_trigger_spec_tests
203
+ - when: never
204
+
205
+ # SIMP_MATRIX_LEVEL=3: Reserved for FULL matrix testing
206
+ .with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3: &with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
207
+ rules:
208
+ - <<: *skip_job_when_commit_message_says_to
209
+ - <<: *force_run_job_when_var_and_lvl_3_or_above
210
+ - <<: *force_run_job_when_commit_mssage_lvl_3_or_above
211
+ - <<: *run_job_when_level_3_or_above_w_changes
212
+ <<: *relevant_file_conditions_trigger_acceptance_tests
213
+ - when: never
214
+
215
+
216
+ # Puppet Versions
217
+ #-----------------------------------------------------------------------
218
+
219
+ .pup_5: &pup_5
220
+ image: 'ruby:2.4'
221
+ variables:
222
+ PUPPET_VERSION: '~> 5.0'
223
+ BEAKER_PUPPET_COLLECTION: 'puppet5'
224
+ MATRIX_RUBY_VERSION: '2.4'
225
+
226
+ .pup_6: &pup_6
227
+ image: 'ruby:2.5'
228
+ variables:
229
+ PUPPET_VERSION: '~> 6.0'
230
+ BEAKER_PUPPET_COLLECTION: 'puppet6'
231
+ MATRIX_RUBY_VERSION: '2.5'
232
+
233
+ .pup_6_18_0: &pup_6_18_0
234
+ image: 'ruby:2.5'
235
+ variables:
236
+ PUPPET_VERSION: '6.18.0'
237
+ BEAKER_PUPPET_COLLECTION: 'puppet6'
238
+ MATRIX_RUBY_VERSION: '2.5'
239
+
240
+ .pup_7: &pup_7
241
+ image: 'ruby:2.7'
242
+ variables:
243
+ PUPPET_VERSION: '~> 7.0'
244
+ BEAKER_PUPPET_COLLECTION: 'puppet7'
245
+ MATRIX_RUBY_VERSION: '2.7'
246
+
247
+ # Testing Environments
248
+ #-----------------------------------------------------------------------
249
+
250
+ .lint_tests: &lint_tests
251
+ stage: 'validation'
252
+ tags: ['docker']
253
+ <<: *setup_bundler_env
24
254
  script:
25
- - bundle exec rake spec
255
+ - 'bundle exec rake syntax'
256
+ - 'bundle exec rake lint'
257
+ - 'bundle exec rake metadata_lint'
26
258
 
27
- # To avoid running a prohibitive number of tests every commit,
28
- # don't set this env var in your gitlab instance
29
- .only_with_SIMP_FULL_MATRIX: &only_with_SIMP_FULL_MATRIX
30
- only:
31
- variables:
32
- - $SIMP_FULL_MATRIX
259
+ .unit_tests: &unit_tests
260
+ stage: 'validation'
261
+ tags: ['docker']
262
+ <<: *setup_bundler_env
263
+ <<: *with_SIMP_SPEC_MATRIX_LEVEL_1
264
+ script:
265
+ - 'bundle exec rake spec'
33
266
 
34
- stages:
35
- - unit
36
- - acceptance
37
-
38
- 2_4-unit:
39
- stage: unit
40
- tags:
41
- - docker
42
- image: ruby:2.4
43
- <<: *cache_bundler
267
+ .acceptance_base: &acceptance_base
268
+ stage: 'acceptance'
269
+ tags: ['beaker']
44
270
  <<: *setup_bundler_env
45
- <<: *spec_tests
271
+ <<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1
272
+
273
+ .compliance_base: &compliance_base
274
+ stage: 'compliance'
275
+ tags: ['beaker']
276
+ <<: *setup_bundler_env
277
+ <<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1
278
+
279
+
280
+ # Unit Tests
281
+ #-----------------------------------------------------------------------
282
+
283
+ pup5-unit:
284
+ <<: *pup_5
285
+ <<: *unit_tests
286
+
287
+ pup6-unit:
288
+ <<: *pup_6
289
+ <<: *unit_tests
290
+
291
+ pup7-unit:
292
+ <<: *pup_7
293
+ <<: *unit_tests
294
+
295
+ # ------------------------------------------------------------------------------
296
+ # NOTICE: **This file is maintained with puppetsync**
297
+ #
298
+ # Everything above the "Repo-specific content" comment will be overwritten by
299
+ # the next puppetsync.
300
+ # ------------------------------------------------------------------------------
301
+
302
+ # Repo-specific content
303
+ # ==============================================================================
304
+
305
+ #=======================================================================
306
+ # Packaging test
307
+
308
+ pup5-pkg:
309
+ <<: *pup_5
310
+ <<: *unit_tests
311
+ script:
312
+ 'bundle exec rake pkg:gem'
46
313
 
314
+ pup6-pkg:
315
+ <<: *pup_6
316
+ <<: *unit_tests
317
+ script:
318
+ 'bundle exec rake pkg:gem'
319
+
320
+ pup7-pkg:
321
+ <<: *pup_7
322
+ <<: *unit_tests
323
+ script:
324
+ 'bundle exec rake pkg:gem'
47
325
 
48
326
  #=======================================================================
49
327
  # Acceptance tests
50
328
  default:
51
- stage: acceptance
52
- tags:
53
- - beaker
54
- <<: *cache_bundler
55
- <<: *setup_bundler_env
329
+ <<: *pup_6
330
+ <<: *acceptance_base
56
331
  script:
57
- - bundle exec rake spec_clean
58
332
  - bundle exec rake beaker:suites[default]
59
333
 
60
334
  default-fips:
61
- stage: acceptance
62
- tags:
63
- - beaker
64
- <<: *cache_bundler
65
- <<: *setup_bundler_env
66
- variables:
67
- BEAKER_fips: 'yes'
335
+ <<: *pup_6
336
+ <<: *acceptance_base
68
337
  script:
69
- - bundle exec rake spec_clean
70
- - bundle exec rake beaker:suites[default]
338
+ - BEAKER_fips=yes bundle exec rake beaker:suites[default]
71
339
 
72
340
  fips_from_fixtures:
73
- stage: acceptance
74
- tags:
75
- - beaker
76
- <<: *cache_bundler
77
- <<: *setup_bundler_env
78
- variables:
79
- PUPPET_VERSION: '~> 5.3'
80
- BEAKER_PUPPET_COLLECTION: 'puppet5'
341
+ <<: *pup_6
342
+ <<: *acceptance_base
81
343
  script:
82
- - bundle exec rake spec_clean
83
344
  - bundle exec rake beaker:suites[fips_from_fixtures]
84
345
 
85
346
  puppet5_collections:
86
- stage: acceptance
87
- tags:
88
- - beaker
89
- <<: *cache_bundler
90
- <<: *setup_bundler_env
91
- variables:
92
- PUPPET_VERSION: '~> 5.3'
347
+ <<: *pup_5
348
+ <<: *acceptance_base
93
349
  script:
94
- - bundle exec rake spec_clean
95
350
  - bundle exec rake beaker:suites[puppet_collections]
96
351
 
97
352
  puppet6_collections:
98
- stage: acceptance
99
- tags:
100
- - beaker
101
- <<: *cache_bundler
102
- <<: *setup_bundler_env
103
- variables:
104
- BEAKER_PUPPET_COLLECTION: 'puppet6'
353
+ <<: *pup_6
354
+ <<: *acceptance_base
355
+ script:
356
+ - bundle exec rake beaker:suites[puppet_collections]
357
+
358
+ puppet7_collections:
359
+ <<: *pup_7
360
+ <<: *acceptance_base
105
361
  script:
106
- - bundle exec rake spec_clean
107
362
  - bundle exec rake beaker:suites[puppet_collections]
108
363
 
109
364
  windows:
110
- stage: acceptance
111
- tags:
112
- - beaker
113
- <<: *cache_bundler
114
- <<: *setup_bundler_env
365
+ <<: *pup_6
366
+ <<: *acceptance_base
115
367
  script:
116
- - bundle exec rake spec_clean
117
368
  - bundle exec rake beaker:suites[windows]
118
369
 
119
370
  snapshot:
120
- stage: acceptance
371
+ <<: *pup_6
372
+ <<: *acceptance_base
121
373
  # This is prone to breakage in the underlying system
122
374
  allow_failure: true
123
- tags:
124
- - beaker
125
- <<: *cache_bundler
126
- <<: *setup_bundler_env
127
- variables:
128
- BEAKER_simp_snapshot: 'yes'
129
375
  script:
130
- - bundle exec rake spec_clean
131
- - bundle exec rake beaker:suites[snapshot]
376
+ - BEAKER_simp_snapshot=yes bundle exec rake beaker:suites[snapshot]