forked from jtimberman/oc-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
36 lines (30 loc) · 788 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 'foodcritic'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
desc 'Run RuboCop style and lint checks'
Rubocop::RakeTask.new(:rubocop)
desc 'Run Foodcritic lint checks'
FoodCritic::Rake::LintTask.new(:foodcritic) do |t|
t.options = {
:fail_tags => ['any'],
:tags => [
'~FC003',
'~FC015'
]
}
end
desc 'Run ChefSpec examples'
RSpec::Core::RakeTask.new(:spec)
desc 'Run all tests'
task :test => [:rubocop, :foodcritic, :spec]
task :default => :test
task :lint => :foodcritic
begin
require 'kitchen/rake_tasks'
Kitchen::RakeTasks.new
desc 'Alias for kitchen:all'
task :integration => 'kitchen:all'
task :test_all => [:test, :integration]
rescue LoadError
puts '>>>>> Kitchen gem not loaded, omitting tasks' unless ENV['CI']
end