Created
November 12, 2011 08:48
-
-
Save kana/1360264 to your computer and use it in GitHub Desktop.
Poor man's CI
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
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