
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: Ib8c5c1bd7d4a5c7175623ed9dc53683d2f592786
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
|