Skip to content
Snippets Groups Projects
Commit 2a566e1c authored by Robert Lange's avatar Robert Lange
Browse files

refs #21064 [finc] codestyle check: install dependencies for codesniffer...

refs #21064 [finc] codestyle check: install dependencies for codesniffer (difffilter) and php-cs-fixer
parent 614bc1c9
Branches
Tags
No related merge requests found
...@@ -4,7 +4,7 @@ red="\e[0;91m" ...@@ -4,7 +4,7 @@ red="\e[0;91m"
green="\e[0;92m" green="\e[0;92m"
clean="\e[0m" clean="\e[0m"
if [ -z $1 ] if [ -z $1 ]
then then
echo -e "\n${red}Nicht genau angegeben was ich tun soll.${clean}\n" echo -e "\n${red}Nicht genau angegeben was ich tun soll.${clean}\n"
echo -e "---------------------------------------------------------------------------" echo -e "---------------------------------------------------------------------------"
...@@ -15,7 +15,7 @@ then ...@@ -15,7 +15,7 @@ then
exit 1 exit 1
fi fi
if [ $(which curl) != "/usr/bin/curl" ] if [ $(which curl) != "/usr/bin/curl" ]
then then
echo -e "\n${red}Benötigt curl.\n" echo -e "\n${red}Benötigt curl.\n"
exit 1 exit 1
...@@ -38,8 +38,12 @@ then ...@@ -38,8 +38,12 @@ then
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
curl -OL https://alpha.finc.info/vufind2/logs/alpha/CodeSniffer.conf curl -OL https://alpha.finc.info/vufind2/logs/alpha/CodeSniffer.conf
curl -OL https://alpha.finc.info/vufind2/logs/alpha/diffFilter.phar
curl -OL https://alpha.finc.info/vufind2/logs/alpha/php-cs-fixer3
chmod +x $HOME/bin/codestylechecker/phpcs.phar chmod +x $HOME/bin/codestylechecker/phpcs.phar
chmod +x $HOME/bin/codestylechecker/diffFilter.phar
chmod +x $HOME/bin/codestylechecker/php-cs-fixer3
echo -e "\n${green}Kopiere Hooks nach ${gitdir}/.git/hooks\n${clean}" echo -e "\n${green}Kopiere Hooks nach ${gitdir}/.git/hooks\n${clean}"
...@@ -55,6 +59,7 @@ then ...@@ -55,6 +59,7 @@ then
chmod +x $gitdir/.git/hooks/pre-push chmod +x $gitdir/.git/hooks/pre-push
echo -e "\n${green}Ready${clean}\n" echo -e "\n${green}Ready${clean}\n"
echo -e "\n${green}Activate PHP CS Fixer in PHPSorm: https://projekte.ub.uni-leipzig.de/projects/finc-intern/wiki/Code-Quality-Checking_mit_PHPStorm${clean}\n"
exit 0 exit 0
elif [ $1 = "update" ] elif [ $1 = "update" ]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment