-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
36 lines (32 loc) · 987 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
require 'rake'
require 'rake/testtask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the Foreman Proxy plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << '.'
t.libs << 'lib'
t.libs << 'test'
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
begin
require 'github_changelog_generator/task'
rescue LoadError
# github_changelog_generator is an optional group
else
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
version = Proxy::Hdm::VERSION
config.future_release = "v#{version}" if /^\d+\.\d+.\d+$/.match?(version)
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
config.user = 'betadots'
config.project = 'smart_proxy_hdm'
end
end
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
rescue StandardError => _e
puts 'Rubocop not loaded.'
end