如何将 python 构建脚本与 teamcity CI 结合使用?
我目前正在研究使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们使用 TeamCity 运行验收测试套件(它使用 Robot Framework - 用 python 完成)。
让它运行就像用一个非常简单的 NAnt 脚本包装 python 调用一样简单。它做了两件事:
可能有一些任务可以直接使用 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:
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.