-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
37 lines (32 loc) · 961 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'rspec/core/rake_task'
desc 'Run spec tests'
RSpec::Core::RakeTask.new(:test) do |t|
t.rspec_opts = ['--color']
t.pattern = 'spec/'
end
desc 'Run spec tests with coverage'
RSpec::Core::RakeTask.new(:coverage) do |t|
ENV['BEAKER_HIERA_COVERAGE'] = 'y'
t.rspec_opts = ['--color']
t.pattern = 'spec/'
end
task default: :test
begin
require 'rubygems'
require 'github_changelog_generator/task'
rescue LoadError
# github_changelog_generator is an optional release
else
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
config.user = 'voxpupuli'
config.project = 'beaker-hiera'
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
config.future_release = gem_version
end
end
begin
require 'voxpupuli/rubocop/rake'
rescue LoadError
# the voxpupuli-rubocop gem is optional
end