
Instead of keeping a local copy of spec_helper_acceptance.rb and requiring updates to all modules for any change, we can move it into the common helper gem and require it from there. This will make it easier to create and review changes that affect all puppet modules. Also change the Gemfile to look for the gem in the local workspace if running in a zuul environment. Change-Id: I26872912f8ff42227f0d88130807f35d900d1209
16 lines
542 B
Ruby
16 lines
542 B
Ruby
source 'https://rubygems.org'
|
|
|
|
if ENV['ZUUL_REF'] && File.exists?("#{ENV['WORKSPACE']}/openstack-infra/puppet-openstack_infra_spec_helper")
|
|
gem_checkout_method = {:path => "#{ENV['WORKSPACE']}/openstack-infra/puppet-openstack_infra_spec_helper"}
|
|
else
|
|
gem_checkout_method = {:git => 'https://git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper'}
|
|
end
|
|
gem_checkout_method[:require] = false
|
|
|
|
group :development, :test, :system_tests do
|
|
gem 'puppet-openstack_infra_spec_helper',
|
|
gem_checkout_method
|
|
end
|
|
|
|
# vim:ft=ruby
|