phing 和 phpUnderControl ...一起工作

发布于 2024-08-03 07:09:35 字数 448 浏览 8 评论 0原文

有人让这些无缝地协同工作吗?我已经尝试过,使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

痴者 2024-08-10 07:09:35

我们的应用程序框架大量使用 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?

第几種人 2024-08-10 07:09:35

为了回答我的问题,最后我认为使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文