OSDN Git Service

openldap-grid-0.2.1
[metasearch/grid-chef-repo.git] / cookbooks / openldap-grid / Rakefile
1 require 'rspec/core/rake_task'
2 require 'rubocop/rake_task'
3 require 'foodcritic'
4
5 namespace :style do
6   desc 'Run Ruby style checks'
7   RuboCop::RakeTask.new(:ruby)
8
9   desc 'Run Chef style checks'
10   FoodCritic::Rake::LintTask.new(:chef) do |t|
11     t.options = {
12       fail_tags: ['any'],
13     }
14   end
15 end
16
17 desc 'Run all style checks'
18 task style: ['style:chef', 'style:ruby']
19
20 desc 'Run ChefSpec examples'
21 RSpec::Core::RakeTask.new(:spec)
22
23 task default: ['style', 'spec']