Skip to content

Commit

Permalink
(SIMP-7848) Add PE2019.8 to pupmod-simp-simplib GL pipeline (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
op-ct authored Jul 16, 2020
1 parent 31b5dc0 commit 4d7c0cf
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 11 deletions.
46 changes: 41 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# ------------------------------------------------------------------------------
# The testing matrix considers ruby/puppet versions supported by SIMP and PE:
#
# https://puppet.com/docs/pe/2019.5/component_versions_in_recent_pe_releases.html
# https://puppet.com/docs/pe/2019.8/component_versions_in_recent_pe_releases.html
# https://puppet.com/misc/puppet-enterprise-lifecycle
# https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
# ------------------------------------------------------------------------------
# Release Puppet Ruby EOL
# SIMP 6.4 5.5 2.4.5 TBD
# PE 2018.1 5.5 2.4.5 2020-11 (LTS)
# PE 2019.5 6.14 2.5.7 Quarterly
# Release Puppet Ruby EOL
# SIMP 6.4 5.5 2.4.10 TBD
# PE 2018.1 5.5 2.4.10 2021-01 (LTS overlap)
# PE 2019.8 6.16 2.5.7 2021-11 (LTS)
---
stages:
- 'sanity'
Expand Down Expand Up @@ -83,6 +83,13 @@ variables:
BEAKER_PUPPET_COLLECTION: 'puppet6'
MATRIX_RUBY_VERSION: '2.5'

.pup_6_16_0: &pup_6_16_0
image: 'ruby:2.5'
variables:
PUPPET_VERSION: '6.16.0'
BEAKER_PUPPET_COLLECTION: 'puppet6'
MATRIX_RUBY_VERSION: '2.5'

# Testing Environments
#-----------------------------------------------------------------------

Expand Down Expand Up @@ -157,6 +164,10 @@ pup6-unit:
<<: *pup_6
<<: *unit_tests

pup6.16.0-unit:
<<: *pup_6_16_0
<<: *unit_tests

# Repo-specific content
# ==============================================================================

Expand Down Expand Up @@ -235,3 +246,28 @@ pup6-caller_function:
allow_failure: true
script:
- 'bundle exec rake beaker:suites[caller_function,default]'

pup6.16.0:
<<: *acceptance_base
<<: *pup_6_16_0
script:
- 'bundle exec rake beaker:suites[default,default]'

pup6.16.0-fips:
<<: *acceptance_base
<<: *pup_6_16_0
script:
- 'BEAKER_fips=yes bundle exec rake beaker:suites[default,default]'

pup6.16.0-oel:
<<: *acceptance_base
<<: *pup_6_16_0
script:
- 'bundle exec rake beaker:suites[default,oel]'

pup6.16.0-oel-fips:
<<: *acceptance_base
<<: *pup_6_16_0
<<: *only_with_SIMP_FULL_MATRIX
script:
- 'BEAKER_fips=yes bundle exec rake beaker:suites[default,oel]'
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- true
before_deploy:
- "export PUPMOD_METADATA_VERSION=`ruby -r json -e \"puts JSON.parse(File.read('metadata.json')).fetch('version')\"`"
- '[[ $TRAVIS_TAG =~ ^poxvup-${PUPMOD_METADATA_VERSION}$|^${PUPMOD_METADATA_VERSION}$ ]]'
- '[[ $TRAVIS_TAG =~ ^simp-${PUPMOD_METADATA_VERSION}$|^${PUPMOD_METADATA_VERSION}$ ]]'
- 'gem install -v "~> 5.5.0" puppet'
- 'git clean -f -x -d'
- 'puppet module build'
Expand Down
27 changes: 22 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
gem_sources = ENV.fetch('GEM_SERVERS','https://rubygems.org').split(/[, ]+/)

ENV['PDK_DISABLE_ANALYTICS'] ||= 'true'

gem_sources.each { |gem_source| source gem_source }

group :test do
puppet_version = ENV['PUPPET_VERSION'] || '~> 5.5'
major_puppet_version = puppet_version.scan(/(\d+)(?:\.|\Z)/).flatten.first.to_i
gem 'rake'
gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 5.5')
gem 'puppet', puppet_version
gem 'rspec'
gem 'rspec-puppet'
gem 'hiera-puppet-helper'
Expand All @@ -13,9 +17,9 @@ group :test do
gem 'puppet-strings'
gem 'puppet-lint-empty_string-check', :require => false
gem 'puppet-lint-trailing_comma-check', :require => false
gem 'simp-rspec-puppet-facts', ENV.fetch('SIMP_RSPEC_PUPPET_FACTS_VERSION', ['>= 2.4.0', '< 3.0.0'] )
gem 'simp-rake-helpers', ENV.fetch('SIMP_RAKE_HELPERS_VERSION', ['>= 5.9', '< 6.0'])
gem 'danger', :require => false
gem 'simp-rspec-puppet-facts', ENV['SIMP_RSPEC_PUPPET_FACTS_VERSION'] || '~> 3.1'
gem 'simp-rake-helpers', ENV['SIMP_RAKE_HELPERS_VERSION'] || ['> 5.11', '< 6']
gem( 'pdk', ENV['PDK_VERSION'] || '~> 1.0', :require => false) if major_puppet_version > 5
end

group :development do
Expand All @@ -27,5 +31,18 @@ end
group :system_tests do
gem 'beaker'
gem 'beaker-rspec'
gem 'simp-beaker-helpers', ENV.fetch('SIMP_BEAKER_HELPERS_VERSION', ['>= 1.17.0', '< 2.0.0'])
gem 'simp-beaker-helpers', ENV['SIMP_BEAKER_HELPERS_VERSION'] || ['>= 1.18.7', '< 2']
end

# Evaluate extra gemfiles if they exist
extra_gemfiles = [
ENV['EXTRA_GEMFILE'] || '',
"#{__FILE__}.project",
"#{__FILE__}.local",
File.join(Dir.home, '.gemfile'),
]
extra_gemfiles.each do |gemfile|
if File.file?(gemfile) && File.readable?(gemfile)
eval(File.read(gemfile), binding)
end
end

0 comments on commit 4d7c0cf

Please sign in to comment.