PHP static code analysis on Jenkins
Clone repo, remove irrelevant directories and Silex app.
git clone https://github.com/adambro/php-jenkins-example.git
rm -r .git/ db/ src/* tests/* www/ composer.lock
composer remove silex/silex doctrine/dbal symfony/twig-bridge twbs/bootstrap
composer update
Essentially you get the barebones of a PHP project in git. The most important part
is wiring between various QA tools (phpmd, phpcpd, phpunit) with their counterpart
Jenkins plugins. Relevant directories (like ./build/
) and files (like .gitignore
or phpunit.xml.dist
) are left intact.
The code is released to public domain using Unlicense http://unlicense.org