我已经设置了Git和CruiseControl,并且刚刚完成了phpUnderControl的工作(这本身就是一场噩梦,因为它缺少包和各种各样的包)。
所以我有所有的插件,比如phpunit和php-documentor。
当我在我的项目上运行'ant‘时,它构建得很好(只是为了检查我的build.xml是否正常)。
当从PHPUnderControl运行构建时,它在图形生成时挂起
[cc]Sep-08 01:10:22 ecutePublisher- executing command: /root/phpUnderControl/bin/phpuc.php graph logs/BIOSYNERGY artifacts/BIOSYNERGY它在这里停留了几个小时,在cruisecontrol上处于“发布”状态,但点击“构建完成”,如果我幸运的话,我可能会看到预期的9个图表中的4个。
如果我手动运行它,它需要大约2秒,并给出所有9个图表(但它仍然停留在‘发布’,直到我停止巡航控制的构建。
此外,覆盖区域似乎可以工作,但是没有生成index.html文件,因此覆盖区域的选项卡显示了一个错误。
文档有时起作用,有时不起作用,但没有错误。
代码浏览器似乎从不显示任何代码?
是否缺少工件发布者所需的内容?
<artifactspublisher subdirectory="api" dest="artifacts/${project.name}" dir="projects/${project.name}/build/api"/>
<artifactspublisher subdirectory="coverage" dest="artifacts/${project.name}" dir="projects/${project.name}/build/coverage"/>
<execute command="phpcb --log projects/${project.name}/build/log --output projects/${project.name}/build/phpcb"/>
<artifactspublisher dir="projects/${project.name}/build/phpcb" dest="artifacts/${project.name}" subdirectory="php-code-browser"/>
<execute command="/root/phpUnderControl/bin/phpuc.php graph logs/${project.name} artifacts/${project.name}"/>谢谢你的帮助!
CC安装地址:http://pixelhero.co.uk:8080
发布于 2012-09-08 21:49:04
如果您不依赖于phpUnderControl,我建议您切换到Jenkins,因为它是由PHPUnit的主要作者积极开发的,并且有一个可以工作的project template。
https://stackoverflow.com/questions/12327003
复制相似问题