TeamCity 和 PHP
我们正在考虑使用 TeamCity 进行持续集成,但在 Rails(Rake 测试)和 PHP(PHPUnit 测试)中都有项目)。
我对 CI 有点陌生 - 有人为 PHP 项目设置 TeamCity 吗?如果是这样,它是直接的吗?
谢谢, 乍得
We are considering TeamCity for continuous integration but have projects in both Rails (Rake tests) and PHP (PHPUnit tests).
I'm a bit new to CI - Has anyone setup TeamCity for PHP projects? If so, is it straight-forward?
Thanks,
Chad
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
要回答这个问题:
只需使用 ant 构建脚本,它就可以与 TeamCity 一起使用。
To get the question answered:
Just use ant build scripts, and it'll work with TeamCity.
在 Web 开发的高需求市场中,使用 CI 非常有益,并且几乎是一项要求(现在已经成为一项要求)。
我们使用 TeamCity、YouTrack、Perforce 和 PHP Maven 来构建、打包和部署我们的 Web 应用程序。设置如下:
在这种情况下,我们的 PROD 和 QA 文件夹位于同一服务器上。或者,您可以拥有多个 TeamCity 构建配置,将应用程序推送到不同的服务器(或使用 teamcity 定义环境变量)。
此外,当我们在 YouTrack 中关闭票证/问题时,我们可以在 TeamCity 相互交互时从 TeamCity 中提取构建信息。
链接:
为 Joomla 持续构建配置 TeamCity、Maven for PHP:
http://www.waltercedric.com/joomla-mainmenu-247/continuous-build/1552-configuring-teamcity-maven-for-php-for-joomla-continuous-build.html
In the high demand market of web development, using CI is very beneficial and almost a requirement (now a days).
We use TeamCity, YouTrack, Perforce and PHP Maven to build, package and deploy our web applications. The setup is as follows:
In this case, our PROD and QA folders are on the same server. Alternatively, you can have multiple TeamCity build configurations that push the app to different servers (or use a teamcity to define the environment variable).
Also, when we close tickets/issues in YouTrack, we can pull the build info from TeamCity as they interact with each other.
Links:
Configuring TeamCity, Maven for PHP for Joomla continuous build:
http://www.waltercedric.com/joomla-mainmenu-247/continuous-build/1552-configuring-teamcity-maven-for-php-for-joomla-continuous-build.html
我们很快将使用 TeamCity 部署许多 PHP 站点——静态站点、Wordpress 站点和 Drupal 站点。
我们使用 Deployer 插件 将文件 sftp 到适当的服务器,然后使用脚本rsync 将文件同步到正确的位置并设置 apache。效果非常非常好。
We are using TeamCity to deploy a number of PHP sites -- static, Wordpress and Drupal shortly.
We use the Deployer plugin to sftp files to the appropriate server and then a script to rsync the files to the right place and to setup apache. Works very, very well.
以下是 JetBrains 发表的一篇关于如何使用 PHP 设置 TeamCity 的新文章:
http://blog.jetbrains.com/webide/2013/01/continuous-integration-for-php-using-teamcity/
Here is a fresh article from JetBrains on how to setup TeamCity with PHP:
http://blog.jetbrains.com/webide/2013/01/continuous-integration-for-php-using-teamcity/