From 5796899ca2e36383b70f6a097ca8229f2c3e6118 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 9 Mar 2016 11:36:16 +0100 Subject: [PATCH] Pin rake to avoid rubocop/rake 11 incompatibility See https://github.com/voxpupuli/modulesync_config/pull/93 This commit updates the module to our latest modulesync configuration. --- .rubocop.yml | 4 ++++ .travis.yml | 1 + CONTRIBUTING.md | 2 +- Gemfile | 6 +++--- spec/spec_helper.rb | 2 ++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e4c6cca..20d8e58 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -27,6 +27,10 @@ Metrics/AbcSize: Metrics/MethodLength: Enabled: false +# Module length is not necessarily an indicator of code quality +Metrics/ModuleLength: + Enabled: false + # Class length is not necessarily an indicator of code quality Metrics/ClassLength: Enabled: false diff --git a/.travis.yml b/.travis.yml index cb7a9e5..1bd8ae2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,3 +41,4 @@ deploy: all_branches: true # Only publish if our main Ruby target builds rvm: 1.9.3 + condition: "$FUTURE_PARSER = yes" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9bbffea..00deb27 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,7 +87,7 @@ with: This will run the tests on an Ubuntu 12.04 virtual machine. You can also run the integration tests against Centos 6.5 with. - RS_SET=centos-64-x64 bundle exec rake acceptances + BEAKER_set=centos-64-x64 bundle exec rake acceptances If you don't want to have to recreate the virtual machine every time you can use `BEAKER_DESTROY=no` and `BEAKER_PROVISION=no`. On the first run you will diff --git a/Gemfile b/Gemfile index 928693d..c9dae6c 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ def location_for(place, fake_version = nil) end group :test do - gem 'rake', :require => false + gem 'rake', '< 11', :require => false gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git' gem 'puppet-lint', :require => false, :git => 'https://github.com/rodjek/puppet-lint.git' gem 'metadata-json-lint', :require => false @@ -19,7 +19,7 @@ group :test do gem 'rspec', :require => false gem 'puppet-blacksmith', :require => false, :git => 'https://github.com/voxpupuli/puppet-blacksmith.git' gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem.git' - gem 'rubocop', '0.37.0', :require => false + gem 'rubocop', '0.37.2', :require => false gem 'rspec-puppet-utils', :require => false gem 'puppetlabs_spec_helper', :require => false gem 'puppet-lint-absolute_classname-check', :require => false @@ -58,7 +58,7 @@ else gem 'facter', :require => false, :groups => [:test] end -ENV['PUPPET_VERSION'].nil? ? puppetversion = '3.8.4' : puppetversion = ENV['PUPPET_VERSION'].to_s +ENV['PUPPET_VERSION'].nil? ? puppetversion = '3.8.5' : puppetversion = ENV['PUPPET_VERSION'].to_s gem 'puppet', puppetversion, :require => false, :groups => [:test] # vim:ft=ruby diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2c6f566..1ffdf17 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1 +1,3 @@ require 'puppetlabs_spec_helper/module_spec_helper' +require 'rspec-puppet-facts' +include RspecPuppetFacts