Skip to content

Instantly share code, notes, and snippets.

@asgrim
Created December 31, 2015 11:46
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asgrim/5803f7b74d119c99f999 to your computer and use it in GitHub Desktop.
Save asgrim/5803f7b74d119c99f999 to your computer and use it in GitHub Desktop.
Never commit a broken test again...
#!/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