Skip to content

Commit f23337c

Browse files
TheMeiersimondeziel
authored andcommitted
pdk update (voxpupuli#150)
Co-authored-by: Christoph Maser <[email protected]>
1 parent 263d205 commit f23337c

File tree

8 files changed

+53
-19
lines changed

8 files changed

+53
-19
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,25 @@ cache:
1010
before_script:
1111
- bundle -v
1212
- rm Gemfile.lock || true
13-
- gem update --system $RUBYGEMS_VERSION
13+
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
14+
- "# Set `rubygems_version` in the .sync.yml to set a value"
15+
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
16+
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
1417
- gem --version
1518
- bundle -v
1619
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
1720

18-
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.3-Puppet ~> 6:
21+
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.7-Puppet ~> 6:
1922
stage: syntax
20-
image: ruby:2.5.3
23+
image: ruby:2.5.7
2124
script:
2225
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
2326
variables:
2427
PUPPET_GEM_VERSION: '~> 6'
2528

26-
parallel_spec-Ruby 2.5.3-Puppet ~> 6:
29+
parallel_spec-Ruby 2.5.7-Puppet ~> 6:
2730
stage: unit
28-
image: ruby:2.5.3
31+
image: ruby:2.5.7
2932
script:
3033
- bundle exec rake parallel_spec
3134
variables:

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ Style/BlockDelimiters:
4040
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
4141
be consistent then.
4242
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
4347
Style/ClassAndModuleChildren:
4448
Description: Compact style reduces the required amount of indentation.
4549
EnforcedStyle: compact

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
---
2+
os: linux
23
dist: xenial
34
language: ruby
45
cache: bundler
56
before_install:
67
- bundle -v
78
- rm -f Gemfile.lock
8-
- gem update --system $RUBYGEMS_VERSION
9+
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
10+
- "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
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'
913
- gem --version
1014
- bundle -v
1115
script:
1216
- 'bundle exec rake $CHECK'
1317
bundler_args: --without system_tests
1418
rvm:
15-
- 2.5.3
19+
- 2.5.7
1620
stages:
1721
- static
1822
- spec
1923
- acceptance
2024
-
2125
if: tag =~ ^\d
2226
name: deploy
23-
matrix:
27+
jobs:
2428
fast_finish: true
2529
include:
2630
-
@@ -32,7 +36,7 @@ matrix:
3236
stage: spec
3337
-
3438
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
35-
rvm: 2.5.3
39+
rvm: 2.5.7
3640
stage: spec
3741
-
3842
env: DEPLOY_TO_FORGE=yes
@@ -46,7 +50,7 @@ notifications:
4650
email: false
4751
deploy:
4852
provider: puppetforge
49-
user: camptocamp
53+
username: camptocamp
5054
password:
5155
secure: "ASTRdmLjJNa1NvHy2LRGvmvUeth6W3Fh/alYWvcvI8nDDsdkweHk0iXhcXZwtMQReb0NI5vJiRNXNy7a3XySC4+SP3hfHuDU58H2FqC4Ff0EHRPRHTEiXf7xmN53RxXYXZQvrFfqUb6tIsBNVKVmsYWNe01k8NVKPyYDfQB75PQ="
5256
on:

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"recommendations": [
3-
"jpogran.puppet-vscode",
3+
"puppet.puppet-vscode",
44
"rebornix.Ruby"
55
]
66
}

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ group :development do
2424
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2525
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2626
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
27-
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
28-
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
29-
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
30-
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
27+
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
28+
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
29+
gem "puppet-module-win-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
30+
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
3131
gem "github_changelog_generator", require: false
3232
end
3333

Rakefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
24
require 'puppetlabs_spec_helper/rake_tasks'
35
require 'puppet-syntax/tasks/puppet-syntax'
@@ -46,7 +48,25 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
4648
config.user = "#{changelog_user}"
4749
config.project = "#{changelog_project}"
4850
config.future_release = "#{changelog_future_release}"
49-
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
51+
config.exclude_labels = ['maintenance']
52+
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
53+
config.add_pr_wo_labels = true
54+
config.issues = false
55+
config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM"
56+
config.configure_sections = {
57+
"Changed" => {
58+
"prefix" => "### Changed",
59+
"labels" => ["backwards-incompatible"],
60+
},
61+
"Added" => {
62+
"prefix" => "### Added",
63+
"labels" => ["feature", "enhancement"],
64+
},
65+
"Fixed" => {
66+
"prefix" => "### Fixed",
67+
"labels" => ["bugfix"],
68+
},
69+
}
5070
end
5171
else
5272
desc 'Generate a Changelog from GitHub'

metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"version_requirement": ">= 4.10.10 < 7.0.0"
8585
}
8686
],
87-
"pdk-version": "1.15.0",
88-
"template-url": "pdk-default#1.15.0",
89-
"template-ref": "tags/1.15.0-0-g0bc522e"
87+
"pdk-version": "1.18.0",
88+
"template-url": "pdk-default#1.18.0",
89+
"template-ref": "tags/1.18.0-0-g095317c"
9090
}

spec/spec_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppetlabs_spec_helper/module_spec_helper'
24
require 'rspec-puppet-facts'
35

@@ -36,6 +38,7 @@
3638
# set to strictest setting for testing
3739
# by default Puppet runs at warning level
3840
Puppet.settings[:strict] = :warning
41+
Puppet.settings[:strict_variables] = true
3942
end
4043
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
4144
c.after(:suite) do

0 commit comments

Comments
 (0)