-
-
Save jamiew/1225184 to your computer and use it in GitHub Desktop.
Jekyll testing on a budget (rake-flavored)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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