mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 03:38:40 +00:00
Fix spelling
This commit is contained in:
parent
2b80aa60fc
commit
3a7fad8a62
|
|
@ -26,12 +26,12 @@ git diff --cached --name-only | while read FILE; do
|
|||
fi
|
||||
|
||||
# Tests
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessfull "$FILE") = 0 ]]; then
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessful "$FILE") = 0 ]]; then
|
||||
echo -e "\e[1;31m\tPhan error.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessfull "$FILE") = 0 ]]; then
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessful "$FILE") = 0 ]]; then
|
||||
echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
isPhanTestSuccessfull() {
|
||||
isPhanTestSuccessful() {
|
||||
php -d memory_limit=4G ${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f "$1"
|
||||
if [ $? -ne 0 ]; then
|
||||
return 0
|
||||
|
|
@ -9,7 +9,7 @@ isPhanTestSuccessfull() {
|
|||
return 1
|
||||
}
|
||||
|
||||
isPhpStanTestSuccessfull() {
|
||||
isPhpStanTestSuccessful() {
|
||||
php -d memory_limit=4G ${rootpath}/vendor/bin/phpstan analyse --autoload-file=${rootpath}/phpOMS/Autoloader.php -l 7 -c ${rootpath}/Build/Config/phpstan.neon "$1"
|
||||
if [ $? -ne 0 ]; then
|
||||
return 0
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@ git diff --name-only $TRAVIS_COMMIT_RANGE | while read FILE; do
|
|||
fi
|
||||
|
||||
# Tests
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessfull "$FILE") = 0 ]]; then
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessful "$FILE") = 0 ]]; then
|
||||
echo -e "\e[1;31m\tPhan error.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessfull "$FILE") = 0 ]]; then
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessful "$FILE") = 0 ]]; then
|
||||
echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user