PHPUnderControl 的 Cruise Control 与 PHP 的 Hudson

发布于 2024-08-21 23:10:10 字数 240 浏览 6 评论 0原文

我使用 PHPUnderControl(PHP 的 Cruise Control 插件)作为 PHP 开发的 CI 服务器。我使用 Ant 来构建我的项目。 PHPUC 主要使用的功能是

  • PHPUnit 测试回顾
  • PHPCS 回顾
  • 图、PHP PMD、PHPCPD 和一些杂项。事物。

Hudson 与 PHPUC 相比有何优点?听说它的发展越来越快,应用也越来越广泛。

I'm using PHPUnderControl (a Cruise Control plugin for PHP) as the CI server for PHP development. I use Ant to build my project. Main used features of PHPUC are

  • PHPUnit test review
  • PHPCS review
  • Diagrams, PHP PMD, PHPCPD and some misc. thing.

What are the pros of Hudson vs. PHPUC? I heard it's development is faster and more widely used day by day.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

淤浪 2024-08-28 23:10:10

大约一年前,我们从 PHPUC 转到 Hudson,并且非常享受它。主要优点之一是创建和编辑项目非常容易,因为这一切都是通过漂亮的 Web UI 完成的,不会弄乱 XML 配置文件。您也不必在更改设置后重新启动 Hudson,因此我发现迭代项目更加容易和快捷。

Hudson 给我留下深刻印象的另一件事是它可以检测并为您指出多少问题。例如,PHPUC 不止一次构建停止工作,导致不再生成 phpunit XML,但 PHPUC 愉快地使用旧结果数天或数周,直到我们意识到。 Hudson 立即指出了这一点,并表示自构建开始以来日志文件从未被触及!当在 Web UI 中设置项目时,它会告诉您在您键入时目录/SCM 位置是否不存在,并提供关于您的意思的 google 式建议,甚至在保存配置之前就发现问题!另外,如果使用像“* 4 * * *”这样的 cron 条目定期构建,它会说,“您真的是指 4 的每分钟,还是指‘0 4 * * *’?”

也就是说,虽然社区和插件生态系统很丰富,但 Hudson 也比 PHPUC 更通用,因此它没有紧密集成到 PHP 项目中,但可以愉快地通过插件发布代码覆盖率和 phpdoc(以及任何 HTML 报告)报告。

另外,不要忘记,如果解决方案 (PHPUC) 没有损坏,则可能不需要修复它。不过,您可以通过下载 .war 文件并运行“java -jar hudson.war”轻松评估 Hudson 的初步印象,并且您将在一分钟内运行一个实例。

总的来说,我觉得它使我们的构建和部署更加健壮和可重复,更快地捕获错误,并且还加快了许多任务的速度(它可以通过 SSH 为自己安装从站并分发作业或同时运行它们!)

We switched from PHPUC to Hudson about a year ago and have certainly enjoyed it. One of the main advantages is how easy it is to create and edit projects since it is all done through a nice web UI, no messing about in XML config files. You also don't have to restart Hudson after changing settings, so I found it a lot easier and quicker to iterate on a project.

Another thing that really impressed me about Hudson was how many problems it can detect and point out for you. For example, more than once with PHPUC the build stopped working in such a way that the phpunit XML was no longer generated, but PHPUC happily used the old results for days or weeks until we realized. Hudson pointed this out right away saying that the log file had not been touched since the build started! When setting up projects too in the web UI, it will tell you if directories / SCM locations don't exist as you type, and offer google-esque suggestions as to what you meant, spotting problems before you even save the configuration! Also if building periodically with a cron entry like "* 4 * * *" it will say, "did you really mean every minute of 4, or do you mean '0 4 * * *'?"

That said, while the community and plugin ecosystem is rich, Hudson is also more generic than PHPUC so it isn't as tightly integrated into PHP projects, but can happily publish code coverage and phpdoc (and any HTML report) reports via plugins.

Also, don't forget that if a solution (PHPUC) isn't broken, there may not be a need to fix it. However you can easily evaluate Hudson for initial impressions by downloading the .war file and running "java -jar hudson.war", and you'll be running an instance in under a minute.

Overall I feel it has made our builds and deployments more robust and repeatable, catching errors faster, and also speeding up many tasks (it can install slaves for itself via SSH and distribute jobs or run them concurrently!)

装迷糊 2024-08-28 23:10:10

Hudson 是一个不错的 Ui,99% 的时间都可以通过 webui 进行配置。上次我查看巡航控制时,您必须在各种 xml 文件中进行嗅探。

Hudson as a nice Ui and can be configured 99% of the time through the webui. Last time I looked at cruise control, you had to sniff around in various xml files.

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