Skip to content

Commit 7a3331c

Browse files
author
Phil Friderici
committed
Use Voxpupli testing gems
1 parent e583b56 commit 7a3331c

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

Gemfile

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
1717
minor_version = ruby_version_segments[0..1].join('.')
1818

1919
group :development do
20-
gem "facter", '< 4.0', require: false
21-
gem "voxpupuli-puppet-lint-plugins", '>= 3.0', require: false
22-
gem "voxpupuli-test", '5.4.1', require: false
23-
gem "faraday", '~> 1.0', require: false
24-
gem "github_changelog_generator", require: false
25-
gem "puppet-blacksmith", require: false
26-
gem "puppet-strings", require: false
20+
gem "voxpupuli-test", '5.4.1', require: false
21+
gem "faraday", '~> 1.0', require: false
22+
gem "github_changelog_generator", require: false
23+
gem "puppet-blacksmith", require: false
24+
gem "puppet-strings", require: false
2725
end
2826
group :system_tests do
29-
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
27+
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.29')
3028
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
3129
gem "beaker-pe", require: false
3230
gem "beaker-hostgenerator"
3331
gem "beaker-rspec"
3432
gem "beaker-docker"
3533
gem "beaker-puppet"
34+
gem "beaker-puppet_install_helper", require: false
35+
gem "beaker-module_install_helper", require: false
3636
end
3737

3838
puppet_version = ENV['PUPPET_GEM_VERSION']
@@ -51,6 +51,16 @@ gems['puppet'] = location_for(puppet_version)
5151
gems['facter'] = location_for(facter_version) if facter_version
5252
gems['hiera'] = location_for(hiera_version) if hiera_version
5353

54+
if Gem.win_platform? && puppet_version =~ %r{^(file:///|git://)}
55+
# If we're using a Puppet gem on Windows which handles its own win32-xxx gem
56+
# dependencies (>= 3.5.0), set the maximum versions (see PUP-6445).
57+
gems['win32-dir'] = ['<= 0.4.9', require: false]
58+
gems['win32-eventlog'] = ['<= 0.6.5', require: false]
59+
gems['win32-process'] = ['<= 0.7.5', require: false]
60+
gems['win32-security'] = ['<= 0.2.5', require: false]
61+
gems['win32-service'] = ['0.8.8', require: false]
62+
end
63+
5464
gems.each do |gem_name, gem_params|
5565
gem gem_name, *gem_params
5666
end

Rakefile

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require 'bundler'
43
require 'puppetlabs_spec_helper/rake_tasks'
54
require 'puppet-syntax/tasks/puppet-syntax'
65
require 'beaker-rspec/rake_task' if Bundler.rubygems.find_name('beaker-rspec').any?
@@ -40,52 +39,50 @@ def changelog_future_release
4039
returnVal
4140
end
4241

43-
PuppetLint.configuration.send('disable_80chars')
44-
PuppetLint.configuration.send('disable_140chars')
45-
PuppetLint.configuration.send('disable_manifest_whitespace_opening_brace_after')
4642
PuppetLint.configuration.send('disable_relative')
4743
PuppetLint.configuration.send('fail_on_warnings')
4844

49-
5045
if Bundler.rubygems.find_name('github_changelog_generator').any?
5146
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
5247
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
5348
config.user = "#{changelog_user}"
5449
config.project = "#{changelog_project}"
50+
config.since_tag = "v7.0.0"
5551
config.future_release = "#{changelog_future_release}"
5652
config.exclude_labels = ['maintenance']
5753
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)."
5854
config.add_pr_wo_labels = true
5955
config.issues = false
60-
config.merge_prefix = "### UNCATEGORIZED PRS; LABEL THEM ON GITHUB"
56+
config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM"
6157
config.configure_sections = {
6258
"Changed" => {
6359
"prefix" => "### Changed",
6460
"labels" => ["backwards-incompatible"],
6561
},
6662
"Added" => {
6763
"prefix" => "### Added",
68-
"labels" => ["enhancement", "feature"],
64+
"labels" => ["feature", "enhancement"],
6965
},
7066
"Fixed" => {
7167
"prefix" => "### Fixed",
72-
"labels" => ["bug", "documentation", "bugfix"],
68+
"labels" => ["bugfix"],
7369
},
7470
}
7571
end
7672
else
7773
desc 'Generate a Changelog from GitHub'
7874
task :changelog do
7975
raise <<EOM
80-
The changelog tasks depends on recent features of the github_changelog_generator gem.
76+
The changelog tasks depends on unreleased features of the github_changelog_generator gem.
8177
Please manually add it to your .sync.yml for now, and run `pdk update`:
8278
---
8379
Gemfile:
8480
optional:
8581
':development':
8682
- gem: 'github_changelog_generator'
87-
version: '~> 1.15'
88-
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0')"
83+
git: 'https://github.com/skywinder/github-changelog-generator'
84+
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
85+
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
8986
EOM
9087
end
9188
end
@@ -100,4 +97,3 @@ end
10097

10198
desc "Release new module version (changelog, reference, commit, tag, gh pages)"
10299
task :release => [:changelog, "strings:generate:reference", "release:commit", "module:tag"]
103-

0 commit comments

Comments
 (0)