OSDN Git Service

[ci skip]
[metasearch/grid-chef-repo.git] / cookbooks / concourse-ci / Rakefile
1 require 'rspec/core/rake_task'
2 require 'rubocop/rake_task'
3 require 'foodcritic'
4 require 'stove/rake_task'
5
6 namespace :style do
7   desc 'Run Ruby style checks'
8   RuboCop::RakeTask.new(:ruby)
9
10   desc 'Run Chef style checks'
11   FoodCritic::Rake::LintTask.new(:chef) do |t|
12     t.options = {
13       fail_tags: ['any'],
14     }
15   end
16 end
17
18 desc 'Run all style checks'
19 task style: ['style:chef', 'style:ruby']
20
21 desc 'Run ChefSpec examples'
22 RSpec::Core::RakeTask.new(:spec)
23
24 desc 'Publish cookbook'
25 Stove::RakeTask.new(:publish) do |t|
26   t.stove_opts = [
27     '--no-git',
28     '--log-level', 'info',
29   ]
30 end
31
32 task default: ['style', 'spec']