mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
Fix script.sh exiting with return code 0 when phpunit tests fail
This commit is contained in:
@@ -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' {} \;)
|
||||
|
||||
Reference in New Issue
Block a user