Created
December 31, 2015 11:46
-
-
Save asgrim/5803f7b74d119c99f999 to your computer and use it in GitHub Desktop.
Never commit a broken test again...
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 | |
echo -n "Running phpunit... " | |
vendor/bin/phpunit --stop-on-failure --stop-on-error > /dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "[FAILED]" | |
exit 1 | |
fi | |
echo "[passed]" | |
echo -n "Running phpcs... " | |
vendor/bin/phpcs > /dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "[FAILED]" | |
exit 1 | |
fi | |
echo "[passed]" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment