File tree Expand file tree Collapse file tree 6 files changed +11
-17
lines changed Expand file tree Collapse file tree 6 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 1- modulesync_config_version : ' 2.9.0 '
1+ modulesync_config_version : ' 2.10.1 '
Original file line number Diff line number Diff line change 11require : rubocop-rspec
22AllCops :
3- TargetRubyVersion : 1.9
3+ TargetRubyVersion : 2.1
44 Include :
55 - ./**/*.rb
66 Exclude :
@@ -545,4 +545,4 @@ RSpec/FilePath:
545545 Enabled : false
546546
547547RSpec/MessageSpies :
548- EnforcedStyle : receive
548+ EnforcedStyle : receive
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ dist: bionic
33language : ruby
44cache : bundler
55before_install :
6- - gem update --system
7- - gem update bundler
6+ - yes | gem update --system
87 - bundle --version
98script :
109 - ' bundle exec rake $CHECK'
@@ -37,6 +36,7 @@ branches:
3736 - /^v\d/
3837notifications :
3938 email : false
39+ webhooks : https://voxpupu.li/incoming/travis
4040 irc :
4141 on_success : always
4242 on_failure : always
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ group :test do
2020 gem 'puppet-lint-classes_and_types_beginning_with_digits-check' , :require => false
2121 gem 'puppet-lint-unquoted_string-check' , :require => false
2222 gem 'puppet-lint-variable_contains_upcase' , :require => false
23- gem 'puppet-lint-absolute_classname-check' , :require => false
23+ gem 'puppet-lint-absolute_classname-check' , '>= 2.0.0' , :require => false
2424 gem 'puppet-lint-topscope-variable-check' , :require => false
2525 gem 'puppet-lint-legacy_facts-check' , :require => false
2626 gem 'puppet-lint-anchor-check' , :require => false
Original file line number Diff line number Diff line change @@ -8,16 +8,6 @@ rescue LoadError
88end
99
1010PuppetLint . configuration . log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
11- PuppetLint . configuration . absolute_classname_reverse = true
12-
13- exclude_paths = %w(
14- pkg/**/*
15- vendor/**/*
16- .vendor/**/*
17- spec/**/*
18- )
19- PuppetLint . configuration . ignore_paths = exclude_paths
20- PuppetSyntax . exclude_paths = exclude_paths
2111
2212desc 'Auto-correct puppet-lint offenses'
2313task 'lint:auto_correct' do
Original file line number Diff line number Diff line change 4848 # Otherwise we need to match the correct facter version to the used puppet version.
4949 # as of 2019-10-31, puppet 5 ships facter 3.11 and puppet 6 ships facter 3.14
5050 # https://puppet.com/docs/puppet/5.5/about_agent.html
51+ #
52+ # The environment variable `PUPPET_VERSION` is available in our travis environment, but we cannot rely on it
53+ # if somebody runs the tests locally. For that case we should fallback the the puppet gem version.
5154 c . default_facter_version = if ENV [ 'FACTERDB_FACTS_VERSION' ]
5255 ENV [ 'FACTERDB_FACTS_VERSION' ]
5356 else
54- Gem ::Dependency . new ( '' , ENV [ 'PUPPET_VERSION' ] ) . match? ( '' , '5' ) ? '3.11.0' : '3.14.0'
57+ puppet_version = ENV [ 'PUPPET_VERSION' ] ? ENV [ 'PUPPET_VERSION' ] : Gem . loaded_specs [ 'puppet' ] . version . to_s
58+ Gem ::Dependency . new ( '' , puppet_version ) . match? ( '' , '5' ) ? '3.11.0' : '3.14.0'
5559 end
5660
5761 # Coverage generation
You can’t perform that action at this time.
0 commit comments