From ec7022faebbe04547d4622c3502df9c43d91ccc6 Mon Sep 17 00:00:00 2001 From: op-ct Date: Wed, 3 Mar 2021 12:30:58 -0500 Subject: [PATCH] (SIMP-9519) GLCI: Upgrade build test to pup6+pdk (#69) --- .gitlab-ci.yml | 5 +++-- .pmtignore | 24 ++++++++++++++---------- Gemfile | 2 +- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ee7b17..1a5194b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -296,7 +296,7 @@ variables: #======================================================================= releng_checks: - <<: *pup_5_x + <<: *pup_6_x <<: *setup_bundler_env stage: 'validation' tags: ['docker'] @@ -307,7 +307,8 @@ releng_checks: - 'bundle exec rake pkg:check_version' - 'bundle exec rake pkg:compare_latest_tag' - 'bundle exec rake pkg:create_tag_changelog' - - 'bundle exec puppet module build' + - 'bundle exec pdk build --force --target-dir=dist' + # Linting #----------------------------------------------------------------------- diff --git a/.pmtignore b/.pmtignore index 9d74016..02aebfb 100644 --- a/.pmtignore +++ b/.pmtignore @@ -7,21 +7,25 @@ # The next baseline sync will overwrite any local changes made to this file. # ------------------------------------------------------------------------------ .*.sw? +.bundle/ +.git/ +.github/ +.gitlab-ci.yml +.rspec_system +.vagrant/ +.vendor/ .yardoc dist/ +doc/ +Gemfile.lock +junit/ +log/ pkg/ +spec/acceptance/ spec/defines/ spec/fixtures/ -spec/acceptance/ spec/rp_env/ -!/spec/hieradata/default.yaml !/spec/fixtures/site.pp -.rspec_system -.vagrant/ -.bundle/ -Gemfile.lock -vendor/ -junit/ -log/ -doc/ +!/spec/hieradata/default.yaml tests/ +vendor/ diff --git a/Gemfile b/Gemfile index e9a9a7d..e9eb071 100644 --- a/Gemfile +++ b/Gemfile @@ -25,7 +25,7 @@ group :test do gem 'puppet-lint-trailing_comma-check', :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.5', '< 6'] - gem( 'pdk', ENV['PDK_VERSION'] || '~> 1.0', :require => false) if major_puppet_version > 5 + gem( 'pdk', ENV['PDK_VERSION'] || '~> 2.0', :require => false) if major_puppet_version > 5 gem 'pathspec', '~> 0.2' if Gem::Requirement.create('< 2.6').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) end