php 什么持续集成工具适合php?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5459540/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What continuous integration tool suits for php?
提问by Yaronius
Possible Duplicates:
Setting up a deployment / build / CI cycle for PHP projects
Recommended server for Continuous Integration for PHP Project
Hello, guys! Recently I faced the need for continuous integration for some of my projects. And, to my surprise, there exist many tools for this purpose like CruiseControl with its plugin PhpUnderControl, Xinc (written in PHP), Hudson with lots of functionality etc. Also I studied the matter and, as far as I understood, installing and configuring such a tool takes quite a long time. Thus, it would be very dissapointing to spend much time for setting everything up and get to know that the tool lacks some crucial functionality. I address to those who have some experience with this matter and can give a piece of reasonable advice. Thank you!
大家好!最近,我的一些项目需要持续集成。而且,令我惊讶的是,有许多用于此目的的工具,例如 CruiseControl 及其插件 PhpUnderControl、Xinc(用 PHP 编写)、具有大量功能的 Hudson 等。我也研究了这个问题,据我所知,安装和配置这样的工具需要相当长的时间。因此,花费大量时间来设置所有内容并了解该工具缺少某些关键功能将是非常令人失望的。我向那些在这件事上有一些经验并可以给出合理建议的人致辞。谢谢!
Updated 26.04.2017:Years passed, I still use CI, but abandoned Jenkins in favor of Gitlab CI: it seems simpler, CI jobs can be configured directly in the project repository. And along with Docker, I believe, it's a very powerful solution that can be tailored for almost any kind of project.
2017年 4 月 26 日更新:多年过去了,我仍然使用 CI,但放弃了 Jenkins,转而使用Gitlab CI:看起来更简单,可以直接在项目存储库中配置 CI 作业。我相信,与 Docker 一起,它是一个非常强大的解决方案,几乎可以为任何类型的项目量身定制。
采纳答案by Jér?me Vieilledent
Jenkins (formerly Hudson) is by far the best solution. It has a nice PHP integration (see http://jenkins-php.org/)
Jenkins(前身为 Hudson)是迄今为止最好的解决方案。它有一个很好的 PHP 集成(参见http://jenkins-php.org/)
回答by Spudley
I can't give you a definitive answer as to what tools are the best (it's a very subjective question, and even if there was a clear leader, it may not remain the best in the future), but I'll do the next best thing and tell you what we're running:
关于什么工具是最好的,我无法给你一个明确的答案(这是一个非常主观的问题,即使有一个明确的领导者,未来也可能不会保持最好),但我会做下一个最好的事情,告诉你我们正在运行什么:
We have a Hudson installation which runs a set of Phing scripts. The Phing scripts run PHPUnit (and a few other tools). Some of the PHPUnit tests are stand-alone unit tests; others run Selenium and test the software in a variety of browsers.
我们有一个运行一组 Phing 脚本的 Hudson 安装。Phing 脚本运行 PHPUnit(和一些其他工具)。一些 PHPUnit 测试是独立的单元测试;其他人运行 Selenium 并在各种浏览器中测试该软件。
From what I gather, this seems to be a fairly common setup, and it works well for us.
据我所知,这似乎是一个相当普遍的设置,对我们来说效果很好。
That said, we use more than just PHP in-house - we have Java and .Net teams as well. Some of the tools may have been chosen in order to help us maintain a consistent interface for our continuous integration across the various teams.
也就是说,我们不仅在内部使用 PHP - 我们还有 Java 和 .Net 团队。可能已经选择了一些工具来帮助我们为跨各个团队的持续集成维护一致的界面。
Hope that helps.
希望有帮助。
回答by KingCrunch
PHPUnderControl(Plugin for CruiseControl) and Jenkins-PHP(formerly known as Hudson-PHP) are the two big players. I recently switched from phpuc to jenkins. Its more flexible.
PHPUnderControl(CruiseControl插件)和Jenkins-PHP(以前称为 Hudson-PHP)是两大玩家。我最近从 phpuc 切换到 jenkins。它更灵活。
回答by Gaurav
Cruise Control
with PHP Under Control(phpuc)
is one of the best solution for this.
Cruise Control
withPHP Under Control(phpuc)
是最好的解决方案之一。