You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Gemfile 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. source ENV['GEM_SOURCE'] || "https://rubygems.org"
  2. def location_for(place, fake_version = nil)
  3. if place =~ /^(git[:@][^#]*)#(.*)/
  4. [fake_version, { :git => $1, :branch => $2, :require => false }].compact
  5. elsif place =~ /^file:\/\/(.*)/
  6. ['>= 0', { :path => File.expand_path($1), :require => false }]
  7. else
  8. [place, { :require => false }]
  9. end
  10. end
  11. group :test do
  12. gem 'puppetlabs_spec_helper', :require => false
  13. gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git'
  14. gem 'rspec-puppet-facts', :require => false
  15. gem 'rspec-puppet-utils', :require => false
  16. gem 'puppet-lint-absolute_classname-check', :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 'metadata-json-lint', :require => false
  24. gem 'puppet-blacksmith', :require => false
  25. gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem.git'
  26. gem 'puppet-strings', :require => false, :git => 'https://github.com/puppetlabs/puppetlabs-strings.git'
  27. gem 'rubocop-rspec', '~> 1.6', :require => false if RUBY_VERSION >= '2.3.0'
  28. gem 'json_pure', '<= 2.0.1', :require => false if RUBY_VERSION < '2.0.0'
  29. gem 'puppet-lint', '2.0.0'
  30. end
  31. group :development do
  32. gem 'travis', :require => false
  33. gem 'travis-lint', :require => false
  34. gem 'guard-rake', :require => false
  35. end
  36. group :system_tests do
  37. if beaker_version = ENV['BEAKER_VERSION']
  38. gem 'beaker', *location_for(beaker_version)
  39. end
  40. if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
  41. gem 'beaker-rspec', *location_for(beaker_rspec_version)
  42. else
  43. gem 'beaker-rspec', :require => false
  44. end
  45. gem 'beaker-puppet_install_helper', :require => false
  46. end
  47. if facterversion = ENV['FACTER_GEM_VERSION']
  48. gem 'facter', facterversion.to_s, :require => false, :groups => [:test]
  49. else
  50. gem 'facter', :require => false, :groups => [:test]
  51. end
  52. ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 4.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
  53. gem 'puppet', puppetversion, :require => false, :groups => [:test]
  54. # vim: syntax=ruby