Ctest/CDash 工作流程:部署夜间构建
我使用/维护了一些 CMake 项目,所以我开始检查 CTest/CDash,但有一些我无法弄清楚的事情:
它只是为了显示构建/测试结果吗? (又名美化日志)
或者:可以将服务器上的夜间构建二进制文件的部署包含在该工作流程中吗?
尽管我认为 CTest 是测试 CMake 项目和显示的理想工具测试结果,我还想在网络服务器上自动部署夜间构建,我想知道它是否是正确的工具......
I use/maintain a few CMake projects, so I started examining CTest/CDash, but there's something that I can't figure out:
Is it only made to display build/test results? (aka beautified logs)
Or : May deployment of night build binaries on a server be included in that workflow?
As much as I think that CTest is the ideal tool for testing CMake projects and showing test results, I would also like to automate the deployment of nightly builds on a web server, and I'm wondering if it's the right tool for that...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 CDash 2.0 和最近的 CTest 中的一个新功能,您可以看到用于 ParaView 的实验示例,
http://trunk.cdash.org/index.php?project=ParaView
导致它的 CTest 脚本可以作为注释查看,例如(从该仪表板),
http://trunk.cdash.org/viewNotes.php?buildid=10381
我是计划在 CDash 2.0 完全发布后,如果没有其他人先抽出时间来使用它,就写下如何使用它。因此,该功能现在肯定已经存在,但非常新。我认为这是一个很棒的功能,并计划在我的项目中使用它来提供夜间二进制文件。
This is a new feature in CDash 2.0 and recent CTest, you can see an experimental example of this in use for ParaView,
http://trunk.cdash.org/index.php?project=ParaView
The CTest script that led to it is viewable as a note, for example (from that dashboard),
http://trunk.cdash.org/viewNotes.php?buildid=10381
I am planning on writing up how to use this once CDash 2.0 is fully releases if no one else gets around to it first. So, the feature is certainly there now but very new. I think it is a great feature, and plan on using it in my projects to make nightly binaries available.
这是一项任务,将由 CMake 执行,而不是由 CTest 或 CDash 执行。我们使用 CMake 生成安装程序映像并将其复制到文件系统上的某个位置。您可以使用 add_custom_target 来指定这样的目标。然后,您的夜间构建可能只包含此目标。
This is rather a task, that would be performed by CMake, not by CTest or CDash. We use CMake to generate an installer image and copy it somewhere on the filesystem. You can use add_custom_target to specify such a target. Your nightly builds might then simply include this target.