TeamCity and PHP


Hello There,



I am new to TeamCity.  I was able to easily get our Rails project setup, but can't find any helpful information on setting a PHP project up.  I didn't see any direct support in the runners (like Rake for Rails), but there has got to be a way to setup TeamCity to run PHPUnit tests (or similar).




Can anyone help me understand my options?  Command line tests?  Maven for PHP?  Workaround?  Hack?




Thanks so much!  So far I love it so hopefully we can get this part to work.



Chad
4 comments
Comment actions Permalink

Maybe this one will help: http://www.waltercedric.com/joomla-mainmenu-247/370-continuous-build/1552-configuring-teamcity-maven-for-php-for-joomla-continuous-build.html

Right now there is no direct support for PHPUnit in TeamCity, but as far as I can see PHPUnit has

--log-xml option which produces JUnit like xml test results. TeamCity can pickup such test results, take a look at the "
XML Report Processing" section on the build runner settings page (choose Ant JUnit option).

0
Comment actions Permalink

Is there a way to use a set of "XML Report Processing" for example use PMD & JUnit in one time, possable I have manualy add this to an .xml?

0
Comment actions Permalink

Hello, Alexander,

You may configure Xml Report Processing to watch for JUnit reports using the Web UI and use Service Message to tell the plugin about other report types.
On using service messages in Xml Report Processing please see http://confluence.jetbrains.net/display/TW/XML+Test+Reporting

0
Comment actions Permalink

Sorry for necroposting but this XML for Apache Ant could help you http://pastebin.com/Sfj1U4XS and here is config for phpunit http://pastebin.com/ELTd4t0K — at least it works for me =)

0

Please sign in to leave a comment.