From 1fe7a0291bd95fec19528a6e273190da0781aeda Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 1 Dec 2018 20:49:09 +0100 Subject: [PATCH] Add phpcs output --- Hooks/travis.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Hooks/travis.sh b/Hooks/travis.sh index 4ff07f2..f02af47 100644 --- a/Hooks/travis.sh +++ b/Hooks/travis.sh @@ -49,6 +49,7 @@ for FILE in $(git diff --cached --name-only); do if [[ $PHP_SYNTAX = 2 ]]; then echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2 + $(php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p "$FILE") exit 1 fi