forked from test-kitchen/kitchen-dsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 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
38
39
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:unit) do |t|
t.libs.push "lib"
t.test_files = FileList["spec/**/*_spec.rb"]
t.verbose = true
end
require "rubocop/rake_task"
require "chefstyle"
desc "Run RuboCop on the lib directory"
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ["lib/**/*.rb"]
# don't abort rake on failure
task.fail_on_error = false
end
desc "Run all test suites"
task test: [:unit, :rubocop]
task default: [:test]
begin
require "github_changelog_generator/task"
require "kitchen-dsc/version"
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.future_release = "v#{Kitchen::Dsc::VERSION}"
config.issues = false
config.pulls = true
config.user = "test-kitchen"
config.project = "kitchen-dsc"
end
rescue LoadError
puts "github_changelog_generator is not available. " \
"gem install github_changelog_generator to generate changelogs"
end