Include syntax check in fails to exit on

This commit is contained in:
Zach Borboa
2016-09-02 00:41:36 -07:00
parent 976f837499
commit 25a764fcb0
+5 -2
View File
@@ -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