Skip to content

Commit

Permalink
PDK update
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed May 8, 2020
1 parent f3c9f99 commit 5c62283
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 58 deletions.
49 changes: 26 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ script:
- 'bundle exec rake $CHECK'
bundler_args: --without system_tests
rvm:
- 2.5.3
- 2.5.7
env:
global:
- FACTER_GEM_VERSION="< 4.0"
stages:
- static
- spec
Expand All @@ -27,7 +30,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=centos-7 BEAKER_TESTMODE=apply BEAKER_keycloak_full=true
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -36,7 +39,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=centos-7 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0 BEAKER_keycloak_full=true
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -45,7 +48,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=centos-7 BEAKER_TESTMODE=apply BEAKER_keycloak_full=true
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -54,7 +57,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=centos-7 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0 BEAKER_keycloak_full=true
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -63,7 +66,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=centos-8 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -72,7 +75,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=centos-8 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -81,7 +84,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=centos-8 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -90,7 +93,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=centos-8 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -99,7 +102,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=debian-9 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -108,7 +111,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=debian-9 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -117,7 +120,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=debian-9 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -126,7 +129,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=debian-9 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -135,7 +138,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=debian-10 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -144,7 +147,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=debian-10 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -153,7 +156,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=debian-10 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -162,7 +165,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=debian-10 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -171,7 +174,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=ubuntu-1804 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -180,7 +183,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=ubuntu-1804 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -189,7 +192,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=ubuntu-1804 BEAKER_TESTMODE=apply
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -198,7 +201,7 @@ matrix:
bundler_args: --with system_tests
dist: xenial
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=ubuntu-1804 BEAKER_TESTMODE=apply BEAKER_keycloak_version=9.0.0
rvm: 2.5.3
rvm: 2.5.7
script: bundle exec rake beaker
services: docker
stage: acceptance
Expand All @@ -208,11 +211,11 @@ matrix:
stage: static
-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.5
rvm: 2.4.9
stage: spec
-
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
rvm: 2.5.3
rvm: 2.5.7
stage: spec
-
env: DEPLOY_TO_FORGE=yes
Expand Down
41 changes: 7 additions & 34 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,30 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
minor_version = ruby_version_segments[0..1].join('.')

group :development do
gem "facter", '< 4.0', require: false
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
gem "activesupport", '~> 5.0', require: false
gem "codecov", '~> 0.1.10', require: false
gem "dependency_checker", '~> 0.2', require: false
gem "facterdb", '~> 0.8.1', require: false
gem "gettext-setup", '~> 0.26', require: false
gem "metadata-json-lint", '~> 2.0', require: false
gem "mocha", '~> 1.0', require: false
gem "parallel_tests", '~> 2.14.1', require: false
gem "parser", '~> 2.5.1.2', require: false
gem "pry", '~> 0.10.4', require: false
gem "puppet-debugger", '~> 0.14', require: false
gem "puppet-lint", '~> 2.3', require: false
gem "puppet_pot_generator", '~> 1.0', require: false
gem "puppet-strings", '~> 2.0', require: false
gem "puppet-resource_api", '~> 1.6', require: false
gem "puppet-syntax", '~> 2.4', require: false
gem "puppetlabs_spec_helper", '~> 2.9', require: false
gem "rainbow", '~> 2.0', require: false
gem "rspec-puppet", '~> 2.3', require: false
gem "rspec-puppet-facts", '~> 1.9.5', require: false
gem "rubocop", '~> 0.49.0', require: false
gem "rubocop-i18n", '~> 1.2.0', require: false
gem "rubocop-rspec", '~> 1.16.0', require: false
gem "rspec_junit_formatter", '~> 0.2', require: false
gem "serverspec", '~> 2.41', require: false
gem "simplecov-console", '~> 0.4.2', require: false
gem "specinfra", '2.82.2', require: false
gem "simplecov", '~> 0.14.1', require: false
gem "puppet-blacksmith", '>= 3.4.0', require: false
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-lint-param-docs", require: false
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
end
group :system_tests do
gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]
gem "puppet-module-win-system-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.21.0')
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
gem "beaker-pe", require: false
gem "beaker-hostgenerator"
gem "beaker-rspec"
gem "beaker-docker", git: 'https://github.com/treydock/beaker-docker', ref: 'c6d1d3dc5f1e8b7770109793d15cfc9927eb1961'
gem "beaker-docker"
gem "beaker-puppet"
end

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@
],
"pdk-version": "1.17.0",
"template-url": "https://github.com/treydock/pdk-templates.git#master",
"template-ref": "heads/master-0-gd71639e"
"template-ref": "heads/master-0-g432be7a"
}

0 comments on commit 5c62283

Please sign in to comment.