Browse Source

Use openstack_spec_helper from zuul checkout

Change-Id: Id497fdbe858eca6cd6e3e702af726db8c41dde9a
changes/86/748886/1
Tobias Urdin 3 weeks ago
parent
commit
03784ddd87
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      Gemfile

+ 14
- 5
Gemfile View File

@@ -1,14 +1,23 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"

group :development, :test, :system_tests do
if ENV['ZUUL_PROJECT'] == 'openstack/puppet-openstack_spec_helper'
gem 'puppet-openstack_spec_helper',
:path => '../..',
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',
:require => 'false'
:git => 'https://opendev.org/openstack/puppet-openstack_spec_helper',
:ref => spec_helper_version,
:require => 'false'
end
end



Loading…
Cancel
Save