Use openstack_spec_helper from zuul checkout
Change-Id: I9b8c3210a1e69592872a57daeeb74c5d7e67bf2a Co-Authored-By: Tobias Urdin <tobias.urdin@binero.se> (cherry picked from commit6212bb5ea8
) (cherry picked from commit4935899e9f
)
This commit is contained in:
parent
e3755b1781
commit
6e86b30cc1
9
Gemfile
9
Gemfile
@ -1,13 +1,22 @@
|
||||
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||
|
||||
group :development, :test, :system_tests do
|
||||
spec_helper_dir = '/home/zuul/src/opendev.org/openstack/puppet-openstack_spec_helper'
|
||||
if File.directory?(spec_helper_dir)
|
||||
if ENV['ZUUL_PROJECT'] == 'openstack/puppet-openstack_spec_helper'
|
||||
gem 'puppet-openstack_spec_helper',
|
||||
:path => '../..',
|
||||
:require => 'false'
|
||||
else
|
||||
gem 'puppet-openstack_spec_helper',
|
||||
:path => spec_helper_dir,
|
||||
:require => 'false'
|
||||
end
|
||||
else
|
||||
spec_helper_version = ENV['ZUUL_BRANCH'] || "master"
|
||||
gem 'puppet-openstack_spec_helper',
|
||||
:git => 'https://opendev.org/openstack/puppet-openstack_spec_helper',
|
||||
:ref => spec_helper_version,
|
||||
:require => 'false'
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user