-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-local-dependecies.sh
More file actions
executable file
·35 lines (27 loc) · 1.07 KB
/
install-local-dependecies.sh
File metadata and controls
executable file
·35 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
printf "\n *** Installing php copy detector *** \n"
wget https://phar.phpunit.de/phpcpd.phar
chmod +x phpcpd.phar
mv phpcpd.phar /usr/local/bin/phpcpd
printf "\n *** Installing php code sniffer phpcs *** \n"
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
chmod +x phpcs.phar
mv phpcs.phar /usr/local/bin/phpcs
printf "\n *** Installing php code beautified phpcbf *** \n"
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar
chmod +x phpcbf.phar
mv phpcbf.phar /usr/local/bin/phpcbf
printf "\n *** Installing phpcs-fixer *** \n"
curl http://get.sensiolabs.org/php-cs-fixer.phar -o php-cs-fixer
chmod a+x php-cs-fixer
mv php-cs-fixer /usr/local/bin/php-cs-fixer
printf "\n *** Installing phpmd *** \n"
wget -c http://static.phpmd.org/php/latest/phpmd.phar
chmod a+x phpmd.phar
mv phpmd.phar /usr/local/bin/phpmd
echo installing PreCommit hooks
apt-get install -y python-setuptools python-dev build-essential
easy_install pip
pip install --upgrade virtualenv
pip install pre-commit
printf "*************************INSTALLATION COMPLETE\n"