PHP构建/集成工具:你使用它们吗? [英] PHP build/integration tools: Do you use them?

查看:148
本文介绍了PHP构建/集成工具:你使用它们吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读 2008年11月版的php | architect magazine 中的Modern PHP workflow文章后, a> which
讨论单元测试(
phpUnit ),构建工具( Phing )和持续集成(

After reading the "Modern PHP workflow" article in the November 2008 edition of php|architect magazine which discussed unit testing (phpUnit), build tools (Phing) and continuous integration (Xinc), I'm inspired the learn more about some of the tooling available for PHP, especially Phing.

在过去,我已经学习了一些工具, ve通常将生产站点作为subversion工作副本来运行,并简单地在生产盒上运行svn update以部署最新版本的代码,从而将其部署到生产服务器。

In the past I've often handled deployment to a production server by running the live site as a subversion working copy and simply running an "svn update" on the production box to deploy the latest version of the code.

您是否使用PHP代码的构建工具?你认为他们提供的部署直接从颠覆?

Do you use build tools for PHP code? What advantages you you believe they offer over deploying direct from subversion? What should I look out for, or what gotchas might I face?

推荐答案

我使用了Phing和Ant,并且喜欢后者多得多。我最初和Phing一起去,因为它是用PHP编写的,但老实说它不像Ant那么成熟。

I have used both Phing and Ant and prefer the latter much more. I initially went with Phing due to it being written in PHP but to be honest it isn't as mature as Ant. In the end, having a mature buildsystem with a large community is worth more.

使用Ant / Phing完成的工作:

Things done with Ant/Phing:


  1. 从基本检出式loalize到特定语言,确保依赖关系存在(其他libs,目录等)


  2. 根据签出的代码版本,将目标数据库升至所需版本

  3. 运行单元测试等

  1. From a base checkout loalize to a specific language, ensure dependencies are there (other libs, directories, etc)
  2. if you have them, compile templates, etc
  3. Bring target database up to the required version, depending on the checked out code version
  4. run unit tests, etc

这篇关于PHP构建/集成工具:你使用它们吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆