Skip to content

Instantly share code, notes, and snippets.

@kana
Created November 12, 2011 08:48
Show Gist options
  • Save kana/1360264 to your computer and use it in GitHub Desktop.
Save kana/1360264 to your computer and use it in GitHub Desktop.
Poor man's CI
managed_files = `git ls-files`.split("\n")
watch /.*/ do |m|
if managed_files.include?(m[0]) then
system '
echo "------------------------------------------------------------"
if prove --failures --comments
then
say -v "Good News" "Success!"
else
say -v "Bad News" "Some tests are failed..."
fi
'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment