Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpUnderControl and CodeBrowser

Does phpUnderControl have a built in code browser? If so, how do I change it to use PHP_CodeBrowser instead?

like image 573
Enrique Avatar asked Apr 22 '10 22:04

Enrique


2 Answers

Yes it has. What you need to do is to include phpcb (PHP_CodeBrowser) on your build process and have CruiseControl's artifacts publisher copies the result into your artifacts' folder.

<execute command="phpcb --log projects/${project.name}/build/logs --source projects/${project.name}/source/PHP --output projects/${project.name}/build/php-code-browser"/>

<artifactspublisher dir="projects/${project.name}/build/php-code-browser" dest="artifacts/${project.name}" subdirectory="php-code-browser"/>

Or alternatively, you may create a symbolic from artifacts folder pointing to phpcb's output directory.

e.g. ln -s /PATH/TO/PHPCB/OUTPUT/DIR/php-code-browser /PATH_TO_CRUISECONTROL/artifacts/PROJECT_NAME/LATEST_LOG/php-code-browser

like image 112
battcor Avatar answered Oct 18 '22 05:10

battcor


I have not integrated those myself yet, but here are two links I bookmarked a while ago that could interest you :

  • PHP_CodeBrowser Release version 0.1.0 : at the end of the article, it says "For the integration in cruisecontrol, please have a look at the README file, or use the current version of phpUnderControl"
  • And phpUnderControl 0.5.0 released gives some XML code that's needed to integrate PHP_CodeBrowser in phpUnderControl.
like image 27
Pascal MARTIN Avatar answered Oct 18 '22 06:10

Pascal MARTIN