3ebe44d16f
The logic in the Gemfile was relying on Zuulv2 variables to find out whether the spec helper gem was already available on disk, and since Zuulv3 has changed things it was failing to find it and downloading the master version instead. This patch ensures the Gemfile looks for the gem in the right place when running in CI. Change-Id: Iaf82b5b89b4b01b811189f7a4c451ddfca8a80ad
16 lines
549 B
Ruby
16 lines
549 B
Ruby
source 'https://rubygems.org'
|
|
|
|
if File.exists?('/home/zuul/src/git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper')
|
|
gem_checkout_method = {:path => '/home/zuul/src/git.openstack.org/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
|