-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
47 lines (40 loc) · 1012 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
38
39
40
41
42
43
44
45
46
47
# Configure the load path so all dependencies in your Gemfile can be required
require 'bundler/setup'
# Puppet tasks
require 'vtasks/puppet'
Vtasks::Puppet.new
desc 'Run puppet tests'
task test: ['puppet:test']
# Lint tasks
require 'vtasks/lint'
Vtasks::Lint.new(
file_list: FileList[
'{lib,spec}/**/*.rb',
'Rakefile'
].exclude('spec/fixtures/**/*')
)
# Release tasks
require 'vtasks/release'
Vtasks::Release.new(
write_changelog: true,
wait_for_ci_success: true,
bug_labels: 'Type: Bug',
enhancement_labels: 'Type: Enhancement'
)
# Display version
desc 'Display version'
task :version do
require 'vtasks/version'
include Vtasks::Utils::Semver
puts "Current version: #{gitver}"
end
# Create a list of contributors from GitHub
desc 'Populate CONTRIBUTORS file'
task :contributors do
system("git log --format='%aN' | sort -u > CONTRIBUTORS")
end
# List all tasks by default
Rake::Task[:default].clear if Rake::Task.task_defined?(:default)
task :default do
system 'rake -D'
end