Load puppet-openstack_spec_helper locally during tests

Change-Id: Ibdb5fc5402e9adc6ec585b49d71065b724e39408
This commit is contained in:
Mohammed Naser 2017-09-27 15:56:34 -04:00 committed by Alex Schultz
parent 7a1931cd63
commit ce0ca3e42b
1 changed files with 9 additions and 1 deletions

10
Gemfile
View File

@ -1,7 +1,15 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"
group :development, :test, :system_tests do
gem 'puppet-openstack_spec_helper', :require => 'false', :git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper'
if ENV['ZUUL_PROJECT'] == 'openstack/puppet-openstack_spec_helper'
gem 'puppet-openstack_spec_helper',
:path => '../..',
:require => 'false'
else
gem 'puppet-openstack_spec_helper',
:git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper',
:require => 'false'
end
end
if facterversion = ENV['FACTER_GEM_VERSION']