哈德森和配置(调试,发布,并行等) [英] Hudson and configurations (debug, release, parallel, etc)

查看:169
本文介绍了哈德森和配置(调试,发布,并行等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在哈德森是否有一些测试多个配置的良好做法。我们在调试和释放模式下编译测试,还可以打开和关闭MPI。

I wonder if there are some good practices for testing multiple configurations in Hudson. We compile tests in debug and release mode and also toggle MPI on and off.

make系统需要一系列参数(DEBUG = FALSE,OPT = TRUE,MPI = TRUE),并做正确的事情,生成测试可执行文件的标签。我可以创建一个完整的控件脚本,但是我想知道我是否缺少一些可以通过参数列表进行迭代的工具。更好的是,如果我可以清理项目之间。

The make system takes a series of parameters (DEBUG=FALSE, OPT=TRUE, MPI=TRUE) and does the right thing, producing test executables that are well labeled. I could probably create a monolithic control script that does everything, but I wonder if I am missing some facility for iterating through a list of parameters. Even better would be if I could clean the project in between.

任何人都有意见?这是否完成了单独的项目?有参数?只需编写一个非常完整的脚本?

Anyone have an opinion? Is this best done with separate projects? With parameters? Just by writing a very complete script?

推荐答案

选择构建多配置项目首先创建你的工作。

Select the option Build multi-configuration project when you first create your job.

在多配置构建中,您可以添加一个轴,为您的一个构建参数定义一组值。然后构建脚本可以将Axis参数引用为环境变量。定义多个轴,Hudson将运行所有组合。

In the multi-configuration build, you can add an "Axis" that defines a set of values for one of your build parameters. Then the build script can reference the Axis parameter as an environment variable. Define multiple axes and Hudson will run through all of the combinations.

这篇关于哈德森和配置(调试,发布,并行等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆