
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: I1b9ca7f38920a2c901ae16f6302af9b3a1ab36b6 Depends-On: I18ed6cd2f8ee472a66cf580e3e183d14c00e6877
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
|