2014-01-19 14:34:01 +00:00
|
|
|
COOKBOOKS = FileList[File.join("site-cookbooks", "*")]
|
|
|
|
|
|
|
|
task :test do
|
|
|
|
COOKBOOKS.each do |cookbook|
|
2014-03-11 16:35:55 +00:00
|
|
|
sh "knife cookbook test '#{File.basename(cookbook)}' -o site-cookbooks"
|
|
|
|
sh "foodcritic '#{cookbook}'"
|
2014-01-19 14:34:01 +00:00
|
|
|
end
|
|
|
|
sh "rspec spec"
|
|
|
|
end
|
2014-01-27 10:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
task :report do
|
|
|
|
Dir.chdir("report") do
|
|
|
|
sh "latexmk -pdf -pvc report.tex"
|
|
|
|
end
|
|
|
|
end
|