Skip to content

Instantly share code, notes, and snippets.

@ameeuw23
Forked from Stubbs/install_jenkins.sh
Last active August 29, 2015 14:12
Show Gist options
  • Save ameeuw23/b2727ffe2f0efe9df467 to your computer and use it in GitHub Desktop.
Save ameeuw23/b2727ffe2f0efe9df467 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Install Git #########################################
apt-get install git
## Install Ant #########################################
apt-get install ant
## Install Jenkins #####################################
if ! grep jenkins /etc/apt/sources.list; then
echo Please add http://pkg.jenkins-ci.org/debian binary/ to /etc/apt/sources and then run the script again.
exit 1
fi
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
apt-get update
apt-get install jenkins
## Install PHP #########################################
apt-get install php5
## Install Pear ########################################
wget -q -O - http://pear.php.net/go-pear.phar > /tmp/go-pear.phar
php /tmp/go-pear.phar
rm /tmp/go-pear.phar
pear upgrade pear
## Install Phing #######################################
pear channel-discover pear.phing.info
pear install --alldeps phing/phing
## Install PHPUnit #####################################
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
## PHPCPD ##############################################
pear install phpunit/phpcpd
pear channel-discover pear.pdepend.org
pear install pdepend/PHP_Depend
## XDebug ##############################################
apt-get install php5-xdebug
## PHPMD ###############################################
pear channel-discover pear.phpmd.org
pear channel-discover pear.pdepend.org
pear install --alldeps phpmd/PHP_PMD
## PHP_Codesniffer #####################################
pear install PHP_CodeSniffer
## PHPLOC ##############################################
pear install phpunit/phploc
## DocBlox #############################################
pear channel-discover pear.docblox-project.org
pear install docblox/DocBlox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment