mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-26 11:09:25 +00:00
Include syntax check in fails to exit on
This commit is contained in:
+5
-2
@@ -1,7 +1,10 @@
|
||||
errors=0
|
||||
|
||||
# Check syntax in php files. Use `xargs' over `find -exec' as xargs exits with a value of 1 when any command errors.
|
||||
find . -type "f" -iname "*.php" ! -path "*/vendor/*" | xargs -L "1" php -l
|
||||
|
||||
errors=0
|
||||
if [[ "${?}" -ne 0 ]]; then
|
||||
((errors++))
|
||||
fi
|
||||
|
||||
# Run tests.
|
||||
phpunit --configuration tests/phpunit.xml
|
||||
|
||||
Reference in New Issue
Block a user