如何将 python 构建脚本与 teamcity CI 结合使用?

发布于 2024-09-08 08:30:53 字数 234 浏览 0 评论 0原文

我目前正在研究使用 TeamCity CI 软件来满足我们公司的 CI 自动化需求,但在查找有关在 TeamCity 中使用不同构建脚本的信息时遇到了困难。我们有需要构建/测试自动化的 C++ 项目,并且我们目前拥有 TeamCity 的许可证。我研究过使用 scons 进行构建自动化,但未能找到有关在 TeamCity 中使用 python 构建脚本的更多信息。如果有人可以向 CI 初学者提供有关这方面的信息,我们将不胜感激。

谢谢

I am currently researching using the TeamCity CI software for our comapanies CI automation needs but have had trouble finding information about using different build scripts with TeamCity. We have C++ projects that need to have build/test automation and we currently have licenses for TeamCity. I have looked into using scons for the build automation but havent been able to find much information about using a python build script with TeamCity. If anyone could provide information about this to a CI beginner would be much appreciated.

Thanks

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

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

发布评论

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

评论(1

捶死心动 2024-09-15 08:30:53

我们使用 TeamCity 运行验收测试套件(它使用 Robot Framework - 用 python 完成)。

让它运行就像用一个非常简单的 NAnt 脚本包装 python 调用一样简单。它做了两件事:

  1. 使用 exec 任务 运行 python以脚本作为参数。
  2. 从构建中获取 xml 输出,并将其转换为 < a href="http://confluence.jetbrains.net/display/TCD4/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-teamcityinfo.xml" rel="nofollow noreferrer">teamcity 可以理解的内容。

可能有一些任务可以直接使用 NAnt 运行 python 脚本,但我们不必使用它们 - 启动和运行非常容易。您可以使用 Ant 或其他任何工具来做同样的事情,具体取决于您的平台是什么。

We use TeamCity to run our acceptance test suite (which uses Robot Framework - done in python).

Getting it to run was as simple as wrapping the python call with a very simple NAnt script. It does 2 things:

  1. Uses an exec task to run python with the script as an argument.
  2. Gets the xml output from the build and transforms it into something teamcity can understand.

There are probably tasks to run python scripts directly with NAnt but we've not had to use them - it was pretty easy to get up and running. You could do the same sort of thing using Ant or whatever depending on what your platform was.

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