Skip to content

Instantly share code, notes, and snippets.

@frandieguez
Last active December 28, 2015 05:09
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 frandieguez/7447297 to your computer and use it in GitHub Desktop.
Save frandieguez/7447297 to your computer and use it in GitHub Desktop.
Run tests with every change in the app or tests code
#!/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