5

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

Enrique
  • 655
  • 1
  • 7
  • 16

2 Answers2

4

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

Valery Viktorovsky
  • 6,487
  • 3
  • 39
  • 47
battcor
  • 41
  • 2
2

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

Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663