forked from puppetlabs/puppetdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
74 lines (62 loc) · 2.1 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
gemfile_home = File.dirname(__FILE__)
source ENV['GEM_SOURCE'] || "https://rubygems.org"
oldest_supported_puppet = "7.0.0"
beaker_version = ENV['BEAKER_VERSION']
begin
puppet_ref = File.read(gemfile_home + '/ext/test-conf/puppet-ref-requested').strip
rescue Errno::ENOENT
puppet_ref = File.read(gemfile_home + '/ext/test-conf/puppet-ref-default').strip
end
def location_for(place)
if place =~ /^(git[:@][^#]*)#(.*)/
[{ git: $1, branch: $2, require: false }]
elsif place =~ /^file:\/\/(.*)/
['>= 0', { path: File.expand_path($1), require: false }]
else
[place, { require: false }]
end
end
gem 'facter'
gem 'rake'
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.99')
group :test do
# Add test-unit for ruby 2.2+ support (has been removed from stdlib)
gem 'test-unit'
gem 'rspec'
# FIXME: going to version 1.0.0 breaks a lot of rspec tests. The changelog
# doesn't list any breaking changes, so we'll need to investigate more.
gem 'puppetlabs_spec_helper', '0.10.3'
case puppet_ref
when "latest"
gem 'puppet', ">= #{oldest_supported_puppet}", :require => false
when "oldest"
gem 'puppet', oldest_supported_puppet, :require => false
else
gem 'puppet', :git => 'https://github.com/puppetlabs/puppet.git',
:ref => puppet_ref, :require => false
end
gem 'puppet-pson', '~> 1.1'
gem 'mocha', '~> 1.0'
end
group :development do
gem 'httparty'
end
# This is a workaround for a bug in bundler, where it likes to look at ruby
# version deps regardless of what groups you want or not. This lets us
# conditionally shortcut evaluation entirely.
if ENV['NO_ACCEPTANCE'] != 'true'
group :acceptance do
if beaker_version
#use the specified version
gem 'beaker', *location_for(beaker_version)
else
# use the pinned version
gem 'beaker', '~> 4.1'
end
gem 'beaker-hostgenerator', '~> 2.2.3'
gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.2')
gem 'beaker-vmpooler', *location_for(ENV['BEAKER_VMPOOLER_VERSION'] || "~> 1.3")
gem 'beaker-puppet', '~> 1.0'
gem 'faraday', '~> 1.8.0'
end
end