Disable the deprecation warnings as errors for puppet-syntax

Recently puppet4 started deprecating ruby 2.0 with the following
commit: e9eda7ed56

One way to work-around this (in the absence of a more recent ruby
version) is to not treat this deprecation warnings as fatal when
doing the puppet syntax check

Closes-Bug: #1660943

Change-Id: I3d7d9c05016920b21d383cbf1d24a1a862e1c19a
(cherry picked from commit 4194764359)
This commit is contained in:
Michele Baldessari 2017-02-01 11:03:18 +01:00 committed by Emilien Macchi
parent aab2dadd19
commit 07764a05ff
2 changed files with 6 additions and 26 deletions

30
Gemfile
View File

@ -1,30 +1,10 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"
group :development, :test do
gem 'puppetlabs_spec_helper', :require => 'false'
gem 'rspec-puppet', '~> 2.2.0', :require => 'false'
gem 'metadata-json-lint', :require => 'false'
gem 'puppet-lint-param-docs', :require => 'false'
gem 'puppet-lint-absolute_classname-check', :require => 'false'
gem 'puppet-lint-absolute_template_path', :require => 'false'
gem 'puppet-lint-trailing_newline-check', :require => 'false'
gem 'puppet-lint-unquoted_string-check', :require => 'false'
gem 'puppet-lint-leading_zero-check', :require => 'false'
gem 'puppet-lint-variable_contains_upcase', :require => 'false'
gem 'puppet-lint-numericvariable', :require => 'false'
gem 'json', :require => 'false'
# NOTE(aschultz): We need to pin to beaker < 3 because beaker 3.1.0
# requires ruby 2.2.5 and 3.0.0 has a bad serverspec dependency
gem 'beaker', '< 3.0.0', :require => 'false'
# adding 'psych' explicitly
# https://github.com/bundler/bundler/issues/2068
# TODO: drop it in a future release of 'bundle'.
gem 'psych', :require => 'false'
end
group :system_tests do
gem 'beaker-rspec', :require => 'false'
gem 'beaker-puppet_install_helper', :require => 'false'
group :development, :test, :system_tests do
gem 'puppet-openstack_spec_helper',
:git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper',
:branch => 'stable/newton',
:require => false
end
if facterversion = ENV['FACTER_GEM_VERSION']

View File

@ -3,4 +3,4 @@ require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('disable_80chars')
PuppetSyntax.fail_on_deprecation_notices = false