Fix script.sh exiting with return code 0 when phpunit tests fail

This commit is contained in:
Zach Borboa
2015-04-23 15:48:26 -07:00
parent 3ebc19f916
commit bfb932dc30
+3
View File
@@ -3,6 +3,9 @@ find . -type "f" -iname "*.php" -exec php -l {} \;
# Run tests.
cd tests && phpunit --configuration phpunit.xml
if [[ "${?}" -ne 0 ]]; then
exit 1
fi
# Enforce line ending consistency in php files.
crlf_file=$(find . -type "f" -iname "*.php" -exec grep --files-with-matches $'\r' {} \;)