Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phing and phpUnderControl ... working together

Has anyone got these to work together seemlessly? I have tried, had some success using the plugin at http://phing.info/trac/wiki/Users/Documentation/CruiseControl, but have failed to:

  • Get the metrics graphs working (nothing appears)
  • Enable the "PMD" - project mess detection - reports

Are there any other ant-specific commands that must (can) be run in addition to my phing build script?

Also, the front page of the reports section dumps a heap of log information, and I'm trying to get rid of that too.

Cheers for any help ... we are running phing 2.3.0 and phpUnderControl 0.4.7.

Paul

like image 646
Paul Hanssen Avatar asked Sep 01 '09 06:09

Paul Hanssen


1 Answers

Our application framework makes heavy use of Phing, and we've got that integrated under CI with phpUnderControl. We do have the metrics and PMD working now, and honestly, it was a little bit of an accident that it started working. But we're still missing the code coverage (working on it) and the phpDoc output (working on that too). I'll try to remember to come back and update this when we're done.

I have found that the main reason for the metrics not showing up is an incompatibility with the ez library that phpuc uses for the rendering. You'll get this NullPointerException on the page, right? Then when you try to run a build manually, you'll get this obscure error about index and divide by 0? What's happening is the ez graphics library that ships with phpuc is old, and you have to upgrade it. I hope that's a clue for you. We didn't have trouble with PMD stuff, so I don't know why that wouldn't work for you. If you want to update your question with more specifics, maybe I can elaborate on what's worked for us?

like image 83
Sam McAfee Avatar answered Sep 18 '22 15:09

Sam McAfee