ef40fb0aa5
- deprecated Gemfile - updated Rakefile to use 'chef exec' instead of 'bundle exec' - updated TESTING.md - added fauxhai permission workaround to bootstrap.sh Change-Id: I4dfa2082cff38f8d73cf89676215dc7f469fe970
27 lines
416 B
Ruby
27 lines
416 B
Ruby
task default: ["test"]
|
|
|
|
task :test => [:lint, :style, :unit]
|
|
|
|
task :berks_prep do
|
|
sh %{chef exec berks vendor}
|
|
end
|
|
|
|
task :lint do
|
|
sh %{chef exec foodcritic --epic-fail any --tags ~FC003 --tags ~FC023 .}
|
|
end
|
|
|
|
task :style do
|
|
sh %{chef exec rubocop}
|
|
end
|
|
|
|
task :unit => :berks_prep do
|
|
sh %{chef exec rspec --format documentation}
|
|
end
|
|
|
|
task :clean do
|
|
rm_rf [
|
|
'berks-cookbooks',
|
|
'Berksfile.lock'
|
|
]
|
|
end
|