Installing PHP tools
We installed some plugins in our Jenkins, but to make these plugins work, we need to install some PHP tools on our EC2 instance. We can install these tools via Composer on our Symfony project, but this is not a good practice. They will sit in the vendor/
directory and make our Symfony project big and heavy.
Instead, we are going to install them in the CI server itself and benefit from them for every project we define in Jenkins:
Assuming that the SSH connection to our EC2 instance is still live, open a terminal window and add the following PEAR channels to the system:
$ sudo pear channel-discover pear.pdepend.org $ sudo pear channel-discover pear.phpmd.org $ sudo pear channel-discover pear.phpdoc.org $ sudo pear channel-discover pear.symfony-project.com
Now install PHP tools as follows:
$ sudo pear install pdepend/PHP_Depend $ sudo pear install phpmd/PHP_PMD $ sudo pear install phpunit/phpcpd $ sudo pear install phpunit/phploc $ sudo pear install --alldeps phpunit/PHP_CodeBrowser...