685291c29e
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: I37d2467f052556b8490c9bc4ca8d63849b8c09d4
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
|