TeamCity 和 PHP

发布于 2024-08-02 17:56:50 字数 213 浏览 2 评论 0原文

我们正在考虑使用 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 技术交流群。

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

发布评论

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

评论(4

听风吹 2024-08-09 17:56:50

要回答这个问题:


只需使用 ant 构建脚本,它就可以与 TeamCity 一起使用。

To get the question answered:


Just use ant build scripts, and it'll work with TeamCity.

同尘 2024-08-09 17:56:50

在 Web 开发的高需求市场中,使用 CI 非常有益,并且几乎是一项要求(现在已经成为一项要求)。

我们使用 TeamCity、YouTrack、Perforce 和 PHP Maven 来构建、打包和部署我们的 Web 应用程序。设置如下:

  1. 完成后,代码将提交到应用程序的 Perforce 存储库主文件夹
  2. TeamCity 配置为检查此文件夹是否有更改,并在每次发现更改时进行构建(请参阅配置 TeamCity)
  3. 开发 准备好部署后,我们将主分支与发布分支集成起来
  4. TeamCity 配置为检查发布分支是否有更改,并通过 FTP 部署到服务器
  5. Cron 作业正在应用程序上运行,以将新版本部署到 QA 分支
  6. 一旦发生更改和功能验证后,QA 部署的状态设置为“部署”
  7. 另一个 Cron 作业正在运行,寻找准备部署的新 QA 版本。找到后,它将包提取到 live 文件夹中。

在这种情况下,我们的 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:

  1. Once developed, code is commited to the Perforce repository main folder for the app
  2. TeamCity is configured to check this folder for changes and build each time changes are found (see configuring TeamCity)
  3. Once development has reached a point where it's ready to be deployed, we integrate the main branch with the release branch
  4. TeamCity is configured to check the release branch for changes and deploy via FTP to the server
  5. Cron jobs are running on the app to deploy new releases to a QA branch
  6. Once changes and functionality is verified, the status of the QA deployment is set to "deploy"
  7. Another Cron job is running looking for new QA releases that are ready to be deployed. Once found, it extracts the package into the live folder

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

唐婉 2024-08-09 17:56:50

我们很快将使用 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.

吲‖鸣 2024-08-09 17:56:50

以下是 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/

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