mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-12 09:08:40 +00:00
Make static tests errors
This commit is contained in:
parent
b3138b30cd
commit
73720de6a7
|
|
@ -7,13 +7,15 @@ if [[ "$FILE" =~ ^.+(php)$ ]]; then
|
||||||
# phan
|
# phan
|
||||||
${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f $FILE
|
${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f $FILE
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\e[1;31m\tPhan warning.\e[0m" >&2
|
echo -e "\e[1;31m\tPhan error.\e[0m" >&2
|
||||||
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# phpstan
|
# phpstan
|
||||||
php -d memory_limit=4G ${rootpath}/vendor/bin/phpstan analyse --autoload-file=${rootpath}/phpOMS/Autoloader.php -l 7 -c ${rootpath}/Build/Config/phpstan.neon $FILE
|
php -d memory_limit=4G ${rootpath}/vendor/bin/phpstan analyse --autoload-file=${rootpath}/phpOMS/Autoloader.php -l 7 -c ${rootpath}/Build/Config/phpstan.neon $FILE
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\e[1;31m\tPhp stan warning.\e[0m" >&2
|
echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2
|
||||||
|
exit 1;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user