272
|
1 source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
|
2
|
|
3 def location_for(place, fake_version = nil)
|
|
4 if place =~ /^(git[:@][^#]*)#(.*)/
|
|
5 [fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
|
6 elsif place =~ /^file:\/\/(.*)/
|
|
7 ['>= 0', { :path => File.expand_path($1), :require => false }]
|
|
8 else
|
|
9 [place, { :require => false }]
|
|
10 end
|
|
11 end
|
|
12
|
|
13 group :test do
|
|
14 gem 'puppetlabs_spec_helper', '>= 2.14.0', :require => false
|
|
15 gem 'rspec-puppet-facts', '>= 1.9.5', :require => false
|
|
16 gem 'rspec-puppet-utils', :require => false
|
|
17 gem 'puppet-lint-leading_zero-check', :require => false
|
|
18 gem 'puppet-lint-trailing_comma-check', :require => false
|
|
19 gem 'puppet-lint-version_comparison-check', :require => false
|
|
20 gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
|
|
21 gem 'puppet-lint-unquoted_string-check', :require => false
|
|
22 gem 'puppet-lint-variable_contains_upcase', :require => false
|
|
23 gem 'puppet-lint-absolute_classname-check', :require => false
|
|
24 gem 'puppet-lint-topscope-variable-check', :require => false
|
|
25 gem 'puppet-lint-legacy_facts-check', :require => false
|
|
26 gem 'puppet-lint-anchor-check', :require => false
|
|
27 gem 'metadata-json-lint', :require => false
|
|
28 gem 'redcarpet', :require => false
|
|
29 gem 'rubocop', '~> 0.49.1', :require => false
|
|
30 gem 'rubocop-rspec', '~> 1.15.0', :require => false
|
|
31 gem 'mocha', '~> 1.4.0', :require => false
|
|
32 gem 'coveralls', :require => false
|
|
33 gem 'simplecov-console', :require => false
|
|
34 gem 'parallel_tests', :require => false
|
|
35 end
|
|
36
|
|
37 group :development do
|
|
38 gem 'travis', :require => false
|
|
39 gem 'travis-lint', :require => false
|
|
40 gem 'guard-rake', :require => false
|
|
41 gem 'overcommit', '>= 0.39.1', :require => false
|
|
42 end
|
|
43
|
|
44 group :system_tests do
|
|
45 gem 'winrm', :require => false
|
|
46 if beaker_version = ENV['BEAKER_VERSION']
|
|
47 gem 'beaker', *location_for(beaker_version)
|
|
48 else
|
|
49 gem 'beaker', '>= 4.2.0', :require => false
|
|
50 end
|
|
51 if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
|
|
52 gem 'beaker-rspec', *location_for(beaker_rspec_version)
|
|
53 else
|
|
54 gem 'beaker-rspec', :require => false
|
|
55 end
|
|
56 gem 'serverspec', :require => false
|
|
57 gem 'beaker-hostgenerator', '>= 1.1.22', :require => false
|
|
58 gem 'beaker-docker', :require => false
|
|
59 gem 'beaker-puppet', :require => false
|
|
60 gem 'beaker-puppet_install_helper', :require => false
|
|
61 gem 'beaker-module_install_helper', :require => false
|
|
62 gem 'rbnacl', '>= 4', :require => false
|
|
63 gem 'rbnacl-libsodium', :require => false
|
|
64 gem 'bcrypt_pbkdf', :require => false
|
|
65 end
|
|
66
|
|
67 group :release do
|
|
68 gem 'github_changelog_generator', :require => false, :git => 'https://github.com/voxpupuli/github-changelog-generator', :branch => 'voxpupuli_essential_fixes'
|
|
69 gem 'puppet-blacksmith', :require => false
|
|
70 gem 'voxpupuli-release', :require => false
|
|
71 gem 'puppet-strings', '>= 2.2', :require => false
|
|
72 end
|
|
73
|
|
74
|
|
75
|
|
76 if facterversion = ENV['FACTER_GEM_VERSION']
|
|
77 gem 'facter', facterversion.to_s, :require => false, :groups => [:test]
|
|
78 else
|
|
79 gem 'facter', :require => false, :groups => [:test]
|
|
80 end
|
|
81
|
|
82 ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 6.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
|
|
83 gem 'puppet', puppetversion, :require => false, :groups => [:test]
|
|
84
|
|
85 # vim: syntax=ruby
|