phing 和 phpUnderControl ...一起工作
有人让这些无缝地协同工作吗?我已经尝试过,使用 http://phing.info/trac 上的插件取得了一些成功/wiki/Users/Documentation/CruiseControl,但未能:
- 使指标图表正常工作(没有出现任何内容)
- 启用“PMD” - 项目混乱检测 - 报告
是否有任何其他特定于 ant 的命令必须(可以)除了我的 phing 构建脚本之外还运行吗?
另外,报告部分的首页转储了一堆日志信息,我也试图摆脱它。
为任何帮助干杯...我们正在运行 phing 2.3.0 和 phpUnderControl 0.4.7。
保罗
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们的应用程序框架大量使用 Phing,并且我们已将其与 phpUnderControl 集成在 CI 下。我们现在确实有指标和 PMD 工作,老实说,它开始工作有点意外。但我们仍然缺少代码覆盖率(正在处理它)和 phpDoc 输出(也在处理它)。当我们完成后,我会尽力记得回来更新。
我发现指标未显示的主要原因是与 phpuc 用于渲染的 ez 库不兼容。你会在页面上得到这个 NullPointerException,对吗?然后,当您尝试手动运行构建时,您会收到有关索引并除以 0 的模糊错误吗?发生的情况是 phpuc 附带的 ez 图形库很旧,您必须升级它。我希望这对你来说是一个线索。我们在 PMD 方面没有遇到任何问题,所以我不知道为什么这对你不起作用。如果您想更具体地更新您的问题,也许我可以详细说明什么对我们有用?
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?
为了回答我的问题,最后我认为使用 ant 构建脚本来使一切正常工作更容易。
我认为 phing 在刚开始时很好,并且具有出色的 dbdeploy 功能(我在 phpUC 中使用),但是为了获取指标和集成 PHPMD,您最好使用 ant - XML 并不难。
干杯
To answer my question, in the end I figured it was easier to just use an ant build script to make everything work.
I think phing is good when starting out, and has an excellent dbdeploy feature (which I use in phpUC), but for getting the metrics and the PHPMD integrated you are better off using ant - the XML is not hard.
Cheers