-
-
Save fhferreira/92d19f5050fd1c5d77e1 to your computer and use it in GitHub Desktop.
This file contains 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 | |
exec < /dev/tty | |
phpunit | |
rc=$? | |
if [[ $rc != 0 ]] ; then | |
echo -n "It looks like some of your tests failed. " | |
exit $rc; | |
fi | |
phpcs -n --standard=PSR2 module/ | |
rc=$? | |
if [[ $rc != 0 ]] ; then | |
echo -n "It looks like you made some code style violations " | |
exit $rc; | |
fi | |
exit $rc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment