mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Add DevTools as submodule, build DevTools for Travis Test
This commit is contained in:
@ -1,8 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
PHP_BINARY="php"
|
||||
|
||||
while getopts "p:" OPTION 2> /dev/null; do
|
||||
case ${OPTION} in
|
||||
p)
|
||||
PHP_BINARY="$OPTARG"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo Running PHP lint scans...
|
||||
shopt -s globstar
|
||||
for file in src/pocketmine/*.php src/pocketmine/**/*.php; do
|
||||
OUTPUT=`php -l "$file"`
|
||||
[ $? -ne 0 ] && echo -n "$OUTPUT" && exit 1
|
||||
OUTPUT=`"$PHP_BINARY" -l "$file"`
|
||||
[ $? -ne 0 ] && echo -n "$OUTPUT" && exit 1
|
||||
done
|
||||
echo Lint scan completed successfully.
|
Reference in New Issue
Block a user