Skip to content

Instantly share code, notes, and snippets.

@jamiew
Forked from inky/Makefile
Created September 18, 2011 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiew/1225184 to your computer and use it in GitHub Desktop.
Save jamiew/1225184 to your computer and use it in GitHub Desktop.
Jekyll testing on a budget (rake-flavored)
desc 'Test site output for Liquid template errors'
task :test => :build do
errors = `grep --exclude Rakefile -R 'Liquid error:' _site`
if errors.nil? || errors.empty?
puts "No errors"
else
puts "Errors:"
puts errors.inspect
exit 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment