Skip to content

Instantly share code, notes, and snippets.

@michalg
Forked from Stubbs/install_jenkins.sh
Last active February 25, 2016 13:03
Show Gist options
  • Save michalg/4986642 to your computer and use it in GitHub Desktop.
Save michalg/4986642 to your computer and use it in GitHub Desktop.
Build environment for Jenkins under CentOS. This script has been tested with Jenkins + CakePHP 2.2
#!/bin/bash
pear upgrade pear
## Install Phing #######################################
pear channel-discover pear.phing.info
pear install --alldeps phing/phing
## Install PHPUnit #####################################
yum install php-xml
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 ##############################################
yum install php-pecl-xdebug.i386
## 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
## PHP_CodeBrowser #####################################
pear channel-discover pear.phpunit.de
pear install phpunit/PHP_CodeBrowser
## PHPDOC #####################################
yum install phpdoc.noarch
## PHPLOC ##############################################
pear install phpunit/phploc
## DocBlox #############################################
pear channel-discover pear.docblox-project.org
pear install --alldeps docblox/DocBlox
@patrickdaulie
Copy link

Apparently pear.phpunit.de is down and doesn't provide the pear install anymore...

The easiest way to install would to install the phar, but that doesn't work in my jenkins setup where I would like to use phploc in plots...

If you'd have a suggestion please let me know.

Thanx for your script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment