]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
authorAlice Nodelman <alice@puppetlabs.com>
Tue, 24 Mar 2015 22:07:42 +0000 (15:07 -0700)
committerAlice Nodelman <alice@puppetlabs.com>
Tue, 24 Mar 2015 22:07:42 +0000 (15:07 -0700)
puppetdb, etc

- support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile

Gemfile

diff --git a/Gemfile b/Gemfile
index e1a59fab8ba3c8347ef82816924913d859a5612d..2d19594db3dc7072f87bcf261ef7f8994fd69d36 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -21,12 +21,17 @@ group :development, :unit_tests do
 end
 
 beaker_version = ENV['BEAKER_VERSION']
+beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
 group :system_tests do
   if beaker_version
-   gem 'beaker', *location_for(beaker_version)
+    gem 'beaker', *location_for(beaker_version)
   end
-  gem 'beaker-rspec',            :require => false
-  gem 'serverspec',              :require => false
+  if beaker_rspec_version
+    gem 'beaker-rspec', *location_for(beaker_rspec_version)
+  else
+    gem 'beaker-rspec',  :require => false
+  end
+  gem 'serverspec',    :require => false
 end
 
 facterversion = ENV['GEM_FACTER_VERSION'] || ENV['FACTER_GEM_VERSION']