File tree 7 files changed +18
-12
lines changed
7 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 25
25
.project
26
26
.envrc
27
27
/inventory.yaml
28
- * .ruby-gemset
29
- * .ruby-version
30
- * .code-workspace
31
- Puppetfile
32
- Vagrantfile
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ Style/BlockDelimiters:
40
40
Description : Prefer braces for chaining. Mostly an aesthetical choice. Better to
41
41
be consistent then.
42
42
EnforcedStyle : braces_for_chaining
43
+ Style/BracesAroundHashParameters :
44
+ Description : Braces are required by Ruby 2.7. Cop removed from RuboCop v0.80.0.
45
+ See https://github.com/rubocop-hq/rubocop/pull/7643
46
+ Enabled : true
43
47
Style/ClassAndModuleChildren :
44
48
Description : Compact style reduces the required amount of indentation.
45
49
EnforcedStyle : compact
Original file line number Diff line number Diff line change 1
1
---
2
+ os : linux
2
3
dist : xenial
3
4
language : ruby
4
5
cache : bundler
@@ -7,22 +8,23 @@ before_install:
7
8
- rm -f Gemfile.lock
8
9
- " # Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
9
10
- " # See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
10
- - ' [ -z "$RUBYGEMS_VERSION" ] || gem update --system $RUBYGEMS_VERSION'
11
+ - " # Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
12
+ - ' [ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
11
13
- gem --version
12
14
- bundle -v
13
15
script :
14
16
- ' SIMPLECOV=yes bundle exec rake $CHECK'
15
17
bundler_args : --without system_tests
16
18
rvm :
17
- - 2.5.3
19
+ - 2.5.7
18
20
stages :
19
21
- static
20
22
- spec
21
23
- acceptance
22
24
-
23
25
if : tag =~ ^v\d
24
26
name : deploy
25
- matrix :
27
+ jobs :
26
28
fast_finish : true
27
29
include :
28
30
-
@@ -34,7 +36,7 @@ matrix:
34
36
stage : spec
35
37
-
36
38
env : PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
37
- rvm : 2.5.3
39
+ rvm : 2.5.7
38
40
stage : spec
39
41
-
40
42
env : DEPLOY_TO_FORGE=yes
Original file line number Diff line number Diff line change 1
1
{
2
2
"recommendations" : [
3
- " jpogran .puppet-vscode" ,
3
+ " puppet .puppet-vscode" ,
4
4
" rebornix.Ruby"
5
5
]
6
6
}
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require 'puppet_litmus/rake_tasks' if Bundler . rubygems . find_name ( 'puppet_litmus' ) . any?
2
4
require 'puppetlabs_spec_helper/rake_tasks'
3
5
require 'puppet-syntax/tasks/puppet-syntax'
Original file line number Diff line number Diff line change 62
62
"version_requirement" : " >= 6.0.0 < 7.0.0"
63
63
}
64
64
],
65
- "pdk-version" : " 1.15 .0" ,
65
+ "pdk-version" : " 1.17 .0" ,
66
66
"template-url" : " https://github.com/puppetlabs/pdk-templates#master" ,
67
- "template-ref" : " heads/master-0-gcaed9d7 "
67
+ "template-ref" : " heads/master-0-g095317c "
68
68
}
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require 'puppetlabs_spec_helper/module_spec_helper'
2
4
require 'rspec-puppet-facts'
3
5
36
38
# set to strictest setting for testing
37
39
# by default Puppet runs at warning level
38
40
Puppet . settings [ :strict ] = :warning
41
+ Puppet . settings [ :strict_variables ] = true
39
42
end
40
43
c . filter_run_excluding ( bolt : true ) unless ENV [ 'GEM_BOLT' ]
41
44
c . after ( :suite ) do
You can’t perform that action at this time.
0 commit comments