Last active
February 18, 2016 02:10
-
-
Save Soolan/31edc2905de97097821d to your computer and use it in GitHub Desktop.
php tools for jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author : Sohail Salehi <info@soolan.com> | |
# | |
# Hello. My name is Sohail Salehi and I am a fullstack web developer. | |
# I would love to bring years of my experience to your projects. | |
# remote/onsite projects are welcome. | |
# Please check my CV and let me know if I could be any help. | |
# http://soolan.com | |
echo -e "These are PHP Tools reuired by Jenkins. \nThey will be downloaded, received +x permission and moved to /usr/local/bin for global access" | |
echo " --< Installing PHPUnit >--" | |
wget https://phar.phpunit.de/phpunit.phar | |
chmod +x phpunit.phar | |
sudo mv phpunit.phar /usr/local/bin/phpunit | |
echo " --< Installing PHPLOC >--" | |
wget https://phar.phpunit.de/phploc.phar | |
chmod +x phploc.phar | |
sudo mv phploc.phar /usr/local/bin/phploc | |
echo " --< Installing PHPCPD >--" | |
wget https://phar.phpunit.de/phpcpd.phar | |
chmod +x phpcpd.phar | |
sudo mv phpcpd.phar /usr/local/bin/phpcpd | |
echo " --< Installing PDEPEND >--" | |
wget http://static.pdepend.org/php/latest/pdepend.phar | |
chmod +x pdepend.phar | |
sudo mv pdepend.phar /usr/local/bin/pdepend | |
echo " --< Installing PHPDOX >--" | |
wget http://phpdox.de/releases/phpdox.phar | |
chmod +x phpdox.phar | |
sudo mv phpdox.phar /usr/local/bin/phpdox | |
echo " --< Installing PHPDOCUMENTOR >--" | |
wget http://phpdoc.org/phpDocumentor.phar | |
chmod +x phpDocumentor.phar | |
sudo mv phpDocumentor.phar /usr/local/bin/phpdoc | |
echo " --< Installing PHPMD >--" | |
wget -c http://static.phpmd.org/php/latest/phpmd.phar | |
chmod +x phpmd.phar | |
sudo mv phpmd.phar /usr/local/bin/phpmd | |
echo " --< Installing PHPCS >--" | |
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | |
chmod +x phpcs.phar | |
sudo mv phpunit.phar /usr/local/bin/phpcs | |
echo "Done!" | |
echo "Now you can activate and use them inside the Jenkins." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment