forked from smoeding/puppet-haveged
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(SIMP-4009) Add support for OEL and Puppet5 (#26)
* Added tests for Puppet 5 * Added support for OEL 6 and 7
- Loading branch information
1 parent
031fa83
commit 2f16d86
Showing
13 changed files
with
431 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
# The testing matrix considers ruby/puppet versions supported by SIMP and PE: | ||
# | ||
# https://puppet.com/docs/pe/2017.3/overview/component_versions_in_recent_pe_releases.html | ||
# https://puppet.com/misc/puppet-enterprise-lifecycle | ||
# https://puppet.com/docs/pe/2017.3/overview/getting_support_for_pe.html#standard-releases-and-long-term-support-releases | ||
# ------------------------------------------------------------------------------ | ||
# release pup ruby eol | ||
# PE 2016.4 4.7 2.1.9 2018-10 (LTS) | ||
# SIMP6.0.0 4.8 2.1.9 TBD | ||
# PE 2017.2 4.10 2.1.9 2018-02-21 | ||
# PE 2017.3 5.3 2.4.1 2018-07 | ||
# PE 2018.1 ??? ????? ????-?? (LTS) | ||
--- | ||
.cache_bundler: &cache_bundler | ||
cache: | ||
untracked: true | ||
# An attempt at caching between runs (ala Travis CI) | ||
key: "${CI_PROJECT_NAMESPACE}__bundler" | ||
paths: | ||
- '.vendor' | ||
- 'vendor' | ||
|
||
.setup_bundler_env: &setup_bundler_env | ||
before_script: | ||
- '(find .vendor | wc -l) || :' | ||
- bundle check || gem install bundler --no-rdoc --no-ri | ||
- rm -f Gemfile.lock | ||
- rm -rf pkg/ | ||
- bundle install --no-binstubs --jobs $(nproc) --path=.vendor "${FLAGS[@]}" | ||
|
||
.validation_checks: &validation_checks | ||
script: | ||
- bundle exec rake syntax | ||
- bundle exec rake check:dot_underscore | ||
- bundle exec rake check:test_file | ||
- bundle exec rake pkg:check_version | ||
- bundle exec rake pkg:compare_latest_tag | ||
- bundle exec rake lint | ||
- bundle exec rake clean | ||
- bundle exec puppet module build | ||
|
||
.spec_tests: &spec_tests | ||
script: | ||
- bundle exec rake spec | ||
|
||
stages: | ||
- validation | ||
- unit | ||
- acceptance | ||
- deploy | ||
|
||
# Puppet 4.7 for PE 2016.4 LTS Support (EOL: 2018-10-21) | ||
# See: https://puppet.com/misc/puppet-enterprise-lifecycle | ||
# -------------------------------------- | ||
pup4.7-validation: | ||
stage: validation | ||
tags: | ||
- docker | ||
image: ruby:2.1 | ||
variables: | ||
PUPPET_VERSION: '~> 4.7.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *validation_checks | ||
|
||
pup4.7-unit: | ||
stage: unit | ||
tags: | ||
- docker | ||
image: ruby:2.1 | ||
variables: | ||
PUPPET_VERSION: '~> 4.7.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *spec_tests | ||
|
||
|
||
# Puppet 4.8 for SIMP 6.0 + 6.1 support | ||
# -------------------------------------- | ||
pup4.8-validation: | ||
stage: validation | ||
tags: | ||
- docker | ||
image: ruby:2.1 | ||
variables: | ||
PUPPET_VERSION: '~> 4.8.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *validation_checks | ||
|
||
pup4.8-unit: | ||
stage: unit | ||
tags: | ||
- docker | ||
image: ruby:2.1 | ||
variables: | ||
PUPPET_VERSION: '~> 4.8.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *spec_tests | ||
|
||
|
||
# Puppet 4.10 for PE 2017.2 support (EOL:2018-02-21) | ||
# See: https://puppet.com/misc/puppet-enterprise-lifecycle | ||
# -------------------------------------- | ||
pup4.10-validation: | ||
stage: validation | ||
tags: | ||
- docker | ||
image: ruby:2.1 | ||
variables: | ||
PUPPET_VERSION: '~> 4.10.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *validation_checks | ||
|
||
pup4.10-unit: | ||
stage: unit | ||
tags: | ||
- docker | ||
image: ruby:2.1 | ||
variables: | ||
PUPPET_VERSION: '~> 4.10.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *spec_tests | ||
|
||
|
||
# Puppet 5.3 for PE 2017.3 support (EOL: 2018-07) | ||
# See: https://puppet.com/misc/puppet-enterprise-lifecycle | ||
# -------------------------------------- | ||
pup5.3-validation: | ||
stage: validation | ||
tags: | ||
- docker | ||
image: ruby:2.4 | ||
variables: | ||
PUPPET_VERSION: '~> 5.3.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *validation_checks | ||
|
||
pup5.3-unit: | ||
stage: unit | ||
tags: | ||
- docker | ||
image: ruby:2.4 | ||
variables: | ||
PUPPET_VERSION: '~> 5.3.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *spec_tests | ||
allow_failure: true | ||
|
||
|
||
# Keep an eye on the latest puppet 5 | ||
# ---------------------------------- | ||
pup5.latest-validation: | ||
stage: validation | ||
tags: | ||
- docker | ||
image: ruby:2.4 | ||
variables: | ||
PUPPET_VERSION: '~> 5.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *validation_checks | ||
allow_failure: true | ||
|
||
pup5.latest-unit: | ||
stage: unit | ||
tags: | ||
- docker | ||
image: ruby:2.4 | ||
variables: | ||
PUPPET_VERSION: '~> 5.0' | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
<<: *spec_tests | ||
allow_failure: true | ||
|
||
|
||
|
||
# Acceptance tests | ||
# ============================================================================== | ||
default-acceptance: | ||
stage: acceptance | ||
tags: | ||
- beaker | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
variables: | ||
PUPPET_VERSION: '4.10' | ||
script: | ||
- bundle exec rake beaker:suites[default] | ||
|
||
fips-acceptance: | ||
stage: acceptance | ||
tags: | ||
- beaker | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
variables: | ||
PUPPET_VERSION: '4.10' | ||
BEAKER_fips: 'yes' | ||
script: | ||
- bundle exec rake beaker:suites[default] | ||
allow_failure: true | ||
|
||
puppet5-acceptance: | ||
stage: acceptance | ||
tags: | ||
- beaker | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
script: | ||
- bundle exec rake beaker:suites[default,puppet5] | ||
allow_failure: true | ||
|
||
oel-acceptance: | ||
stage: acceptance | ||
tags: | ||
- beaker | ||
<<: *cache_bundler | ||
<<: *setup_bundler_env | ||
script: | ||
- bundle exec rake beaker:suites[default,oel] | ||
allow_failure: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Requires: pupmod-puppetlabs-stdlib < 5.0.0-0 | ||
Requires: pupmod-puppetlabs-stdlib >= 4.13.1-0 | ||
Requires: pupmod-simp-simplib < 4.0.0-0 | ||
Requires: pupmod-simp-simplib >= 3.2.0-0 | ||
Requires: pupmod-simp-simplib >= 3.2.0 | ||
Requires: pupmod-simp-simplib < 4.0.0 | ||
Requires: pupmod-puppetlabs-stdlib >= 4.13.1 | ||
Requires: pupmod-puppetlabs-stdlib < 5.0.0 |
Oops, something went wrong.