gemspec: add dependencies for modules

Add all the gems that are required to run rspec-puppet, puppet-lint and
rspec-beaker in our modules.

puppet-openstack_spec_helper.gemspec will be the centralized file to
manage gems dependencies across all our modules.

Change-Id: Iaf01f0aed5a34fb83a27678e7e8bb4d2a84d6428
(cherry picked from commit d899ddc208)
This commit is contained in:
Emilien Macchi 2016-03-28 19:28:11 -04:00
parent 5901b7d1a3
commit 8f5ef37d43
3 changed files with 27 additions and 1 deletions

View File

@ -18,7 +18,7 @@ install_gems() {
# Modify Gemfile to use local library and not the one on git
# so we can actually test the current state of the gem.
sed -i "s/.*git => 'https:\/\/git.openstack.org\/openstack\/puppet-openstack_spec_helper.*/ :path => '..\/..',/" Gemfile
sed -i "s/.*git => 'https:\/\/git.openstack.org\/openstack\/puppet-openstack_spec_helper.*/ :path => '..\/..',/" Gemfile
# Install dependencies
gem install bundler --no-rdoc --no-ri --verbose

View File

@ -15,4 +15,26 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
# dependencies that are needed to run puppet-lint and rspec-puppet
spec.add_dependency 'puppetlabs_spec_helper'
spec.add_dependency 'rspec-puppet', ['~> 2.2.0']
spec.add_dependency 'rspec-puppet-facts'
spec.add_dependency 'metadata-json-lint'
spec.add_dependency 'puppet-lint-param-docs'
spec.add_dependency 'puppet-lint-absolute_classname-check'
spec.add_dependency 'puppet-lint-absolute_template_path'
spec.add_dependency 'puppet-lint-trailing_newline-check'
spec.add_dependency 'puppet-lint-unquoted_string-check'
spec.add_dependency 'puppet-lint-leading_zero-check'
spec.add_dependency 'puppet-lint-variable_contains_upcase'
spec.add_dependency 'puppet-lint-numericvariable'
spec.add_dependency 'json'
spec.add_dependency 'netaddr'
spec.add_dependency 'webmock'
# dependencies that are needed to run beaker-rspec
spec.add_dependency 'beaker-rspec'
spec.add_dependency 'beaker-puppet_install_helper'
spec.add_dependency 'r10k'
end

View File

@ -0,0 +1,4 @@
---
features:
- Manage Gems dependencies from all Puppet OpenStack modules in gemspec file,
so we have a single place where we can deal with the gems.