Skip to content

Commit ee18230

Browse files
committed
(CAT-2325) Repin litmus to ~> 2.0 when PUPPET_FORGE_TOKEN is detected
1 parent 08c8da7 commit ee18230

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ group :development, :release_prep do
4343
gem "puppet-blacksmith", '~> 7.0', require: false
4444
end
4545
group :system_tests do
46-
gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw]
46+
gem "puppet_litmus", '~> 2.0', require: false, platforms: [:ruby, :x64_mingw] if !ENV['PUPPET_FORGE_TOKEN'].to_s.empty?
47+
gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw] if ENV['PUPPET_FORGE_TOKEN'].to_s.empty?
4748
gem "CFPropertyList", '< 3.0.7', require: false, platforms: [:mswin, :mingw, :x64_mingw]
4849
gem "serverspec", '~> 2.41', require: false
4950
end
@@ -56,7 +57,7 @@ hiera_version = ENV.fetch('HIERA_GEM_VERSION', nil)
5657
# If PUPPET_FORGE_TOKEN is set then use authenticated source for both puppet and facter, since facter is a transitive dependency of puppet
5758
# Otherwise, do as before and use location_for to fetch gems from the default source
5859
if !ENV['PUPPET_FORGE_TOKEN'].to_s.empty?
59-
gems['puppet'] = ['~> 8.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }]
60+
gems['puppet'] = ['~> 8.11', { req§uire: false, source: 'https://rubygems-puppetcore.puppet.com' }]
6061
gems['facter'] = ['~> 4.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }]
6162
else
6263
gems['puppet'] = location_for(puppet_version)

0 commit comments

Comments
 (0)