mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
16 lines
300 B
Bash
Executable file
16 lines
300 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ -s build/logs/phpunit.xml ]; then
|
|
res=$(cat build/logs/sniffs_res 2>/dev/null)
|
|
if ( grep 'failures="[^0]"' build/logs/phpunit.xml ); then
|
|
res=1
|
|
elif ( grep 'errors="[^0]"' build/logs/phpunit.xml ); then
|
|
res=2
|
|
else
|
|
res=0
|
|
fi
|
|
else
|
|
res=2
|
|
fi
|
|
|
|
echo ${res}
|