Based on xurumelous' template: https://github.com/xurumelous/symfony2-jenkins-template
Follow the installation steps from Jenkins PHP for installing needed deendencies (ignore the xml files from there) and follow with these particular steps:
-
Clone this repository: git clone [email protected]:alex88/symfony2.1-jenkins-template.git
-
Move the jenkins folder to
[SYMFONY2_ROOT]/app/Resources/
inside your Symfony2 project. -
Move
build.xml
to the root folder of your Symfony2 application. -
Move
phpunit.xml
to[SYMFONY2_ROOT]/app
folder or update the existing one. Thelogging
node is needed! -
Add th symfony2-coding-standards in your phpcs naming it as
Symfony2
or edit the phpcs target on build.xml with the right parameters for your envirement.
You can customize the configuration as you want, this works fine with me :)