Increase memory limit

This commit is contained in:
Dennis Eichhorn 2018-07-14 22:22:29 +02:00
parent 2ebcaf25e9
commit ef0f01877d
2 changed files with 3 additions and 3 deletions

View File

@ -12,14 +12,14 @@ if [[ "$FILE" =~ ^.+(php)$ ]]; then
fi fi
# phpcs # phpcs
${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p $FILE php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p $FILE
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2 echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2
exit 1 exit 1
fi fi
# phpmd # phpmd
${rootpath}/vendor/bin/phpmd $FILE text ${rootpath}/Build/Config/phpmd.xml --exclude *tests* --minimumpriority 1 php -d memory_limit=4G ${rootpath}/vendor/bin/phpmd $FILE text ${rootpath}/Build/Config/phpmd.xml --exclude *tests* --minimumpriority 1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\e[1;31m\tMess Detector error.\e[0m" >&2 echo -e "\e[1;31m\tMess Detector error.\e[0m" >&2
exit 1 exit 1

View File

@ -5,7 +5,7 @@ git diff --cached --name-only | while read FILE; do
if [[ "$FILE" =~ ^.+(php)$ ]]; then if [[ "$FILE" =~ ^.+(php)$ ]]; then
if [[ -f $FILE ]]; then if [[ -f $FILE ]]; then
# phan # phan
${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f $FILE php -d memory_limit=4G ${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 error.\e[0m" >&2 echo -e "\e[1;31m\tPhan error.\e[0m" >&2
exit 1; exit 1;