2016-03-09 17:36:49 -05:00
|
|
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
|
|
|
|
2016-03-29 21:36:53 -04:00
|
|
|
group :development, :test, :system_tests do
|
2020-08-30 23:00:51 +02:00
|
|
|
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,
|
2018-02-12 10:53:38 +08:00
|
|
|
:require => 'false'
|
2020-08-30 23:00:51 +02:00
|
|
|
end
|
2018-02-12 10:53:38 +08:00
|
|
|
else
|
2020-08-30 23:00:51 +02:00
|
|
|
spec_helper_version = ENV['ZUUL_BRANCH'] || "master"
|
2018-02-12 10:53:38 +08:00
|
|
|
gem 'puppet-openstack_spec_helper',
|
2020-08-30 23:00:51 +02:00
|
|
|
:git => 'https://opendev.org/openstack/puppet-openstack_spec_helper',
|
|
|
|
:ref => spec_helper_version,
|
|
|
|
:require => 'false'
|
2018-02-12 10:53:38 +08:00
|
|
|
end
|
2016-03-09 17:36:49 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
|
|
|
gem 'facter', facterversion, :require => false
|
|
|
|
else
|
|
|
|
gem 'facter', :require => false
|
|
|
|
end
|
|
|
|
|
|
|
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
|
|
gem 'puppet', puppetversion, :require => false
|
|
|
|
else
|
|
|
|
gem 'puppet', :require => false
|
|
|
|
end
|
|
|
|
|
|
|
|
# vim:ft=ruby
|