Last active
December 28, 2015 05:09
-
-
Save frandieguez/7447297 to your computer and use it in GitHub Desktop.
Run tests with every change in the app or tests code
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
#!/bin/bash | |
if ! which inotifywait > /dev/null; then | |
echo "You must install the inotify-tools package to use this script"; | |
exit 1; | |
fi | |
while true; do | |
inotifywait -r -e modify src/ tests/ --excludei "(tpl|js|css|jpg|png|yml|yaml)$" && | |
clear && | |
ant phpunit; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment