2014-06-26 02:23:12 +02:00
|
|
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
2013-02-03 01:55:21 +01:00
|
|
|
|
2015-03-24 19:40:24 +01:00
|
|
|
def location_for(place, fake_version = nil)
|
2016-01-25 16:42:27 +01:00
|
|
|
if place =~ /^(git[:@][^#]*)#(.*)/
|
2015-03-24 19:40:24 +01:00
|
|
|
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
|
|
|
elsif place =~ /^file:\/\/(.*)/
|
|
|
|
['>= 0', { :path => File.expand_path($1), :require => false }]
|
|
|
|
else
|
|
|
|
[place, { :require => false }]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-12-08 19:23:17 +01:00
|
|
|
group :development, :unit_tests do
|
2016-01-25 16:42:27 +01:00
|
|
|
gem 'json', :require => false
|
|
|
|
gem 'metadata-json-lint', :require => false
|
|
|
|
gem 'puppet_facts', :require => false
|
|
|
|
gem 'puppet-blacksmith', :require => false
|
|
|
|
gem 'puppetlabs_spec_helper', :require => false
|
|
|
|
gem 'rspec-puppet', '>= 2.3.2', :require => false
|
|
|
|
gem 'simplecov', :require => false
|
2015-05-07 19:09:21 +02:00
|
|
|
end
|
|
|
|
group :system_tests do
|
2016-01-25 16:42:27 +01:00
|
|
|
gem 'beaker-puppet_install_helper', :require => false
|
2015-05-07 19:09:21 +02:00
|
|
|
if beaker_version = ENV['BEAKER_VERSION']
|
|
|
|
gem 'beaker', *location_for(beaker_version)
|
|
|
|
end
|
|
|
|
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
|
|
|
|
gem 'beaker-rspec', *location_for(beaker_rspec_version)
|
|
|
|
else
|
|
|
|
gem 'beaker-rspec', :require => false
|
|
|
|
end
|
2016-01-25 16:42:27 +01:00
|
|
|
gem 'master_manipulator', :require => false
|
|
|
|
gem 'serverspec', :require => false
|
2013-02-03 01:55:21 +01:00
|
|
|
end
|
|
|
|
|
2014-06-30 19:57:45 +02:00
|
|
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
|
|
|
gem 'facter', facterversion, :require => false
|
|
|
|
else
|
|
|
|
gem 'facter', :require => false
|
|
|
|
end
|
|
|
|
|
2013-02-03 01:55:21 +01:00
|
|
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
|
|
gem 'puppet', puppetversion, :require => false
|
|
|
|
else
|
|
|
|
gem 'puppet', :require => false
|
|
|
|
end
|
2014-06-26 02:23:12 +02:00
|
|
|
|
|
|
|
# vim:ft=ruby
|