mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Shell-based CI with lint scans
This commit is contained in:
8
tests/lint.sh
Executable file
8
tests/lint.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
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
|
||||
done
|
||||
echo Lint scan completed successfully.
|
Reference in New Issue
Block a user