blob: 209d056697e18bcb268f802598e95e41de0fbef0 (
plain)
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
48
49
50
51
52
53
|
require 'bundler'
require 'bundler/gem_tasks'
require 'chef_zero/version'
task :default => :pedant
desc "run specs"
task :spec do
system('rspec spec/*_spec.rb')
end
desc "run oc pedant"
task :pedant do
require File.expand_path('spec/run_oc_pedant')
end
desc "run pedant with CHEF_FS set"
task :cheffs do
ENV['CHEF_FS'] = "yes"
require File.expand_path('spec/run_oc_pedant')
end
desc "run pedant with FILE_STORE set"
task :filestore do
ENV['FILE_STORE'] = "yes"
require File.expand_path('spec/run_oc_pedant')
end
desc "run oc pedant"
task :oc_pedant do
require File.expand_path('spec/run_oc_pedant')
end
task :chef_spec do
gem_path = Bundler.environment.specs['chef'].first.full_gem_path
system("cd #{gem_path} && rspec spec/integration")
end
task :berkshelf_spec do
gem_path = Bundler.environment.specs['berkshelf'].first.full_gem_path
system("cd #{gem_path} && thor spec:ci")
end
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.token = ENV['GITHUB_CHANGELOG_TOKEN']
# config.future_release = ChefZero::VERSION
config.enhancement_labels = "enhancement,Enhancement,New Feature".split(',')
config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(',')
config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog".split(',')
end
|