diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 046c305..9a1027d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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' @@ -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 #----------------------------------------------------------------------- @@ -157,6 +164,10 @@ pup6-unit: <<: *pup_6 <<: *unit_tests +pup6.16.0-unit: + <<: *pup_6_16_0 + <<: *unit_tests + # Repo-specific content # ============================================================================== @@ -196,3 +207,28 @@ pup6-fips: <<: *acceptance_base script: - 'BEAKER_fips=yes bundle exec rake beaker:suites[default,default]' + +pup6.16.0: + <<: *pup_6_16_0 + <<: *acceptance_base + script: + - 'bundle exec rake beaker:suites[default,default]' + +pup6.16.0-fips: + <<: *pup_6_16_0 + <<: *acceptance_base + script: + - 'BEAKER_fips=yes bundle exec rake beaker:suites[default,default]' + +pup6.16.0-oel: + <<: *pup_6_16_0 + <<: *acceptance_base + script: + - 'bundle exec rake beaker:suites[default,oel]' + +pup6.16.0-oel-fips: + <<: *pup_6_16_0 + <<: *acceptance_base + <<: *only_with_SIMP_FULL_MATRIX + script: + - 'BEAKER_fips=yes bundle exec rake beaker:suites[default,oel]' diff --git a/.travis.yml b/.travis.yml index 63426c7..df9f2a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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' diff --git a/Gemfile b/Gemfile index 1051c03..0eb52f2 100644 --- a/Gemfile +++ b/Gemfile @@ -1,21 +1,25 @@ 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' gem 'hiera-puppet-helper' gem 'puppetlabs_spec_helper' gem 'metadata-json-lint' 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 '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 @@ -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