Try wrap pipeline in array
This commit is contained in:
parent
1917c08e51
commit
12725500a8
|
@ -1,7 +1,13 @@
|
||||||
local compiler_versions = {
|
local compiler_versions = [
|
||||||
"commands": []
|
"04", "05", "06", "07", "08", "09"
|
||||||
};
|
];
|
||||||
|
local test_compiler_version(version) = [
|
||||||
|
"cd code/compiler/%(version)",
|
||||||
|
"mkdir build && cd build",
|
||||||
|
"cd .."
|
||||||
|
];
|
||||||
|
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
"type": "docker",
|
"type": "docker",
|
||||||
|
@ -10,7 +16,8 @@ local compiler_versions = {
|
||||||
{
|
{
|
||||||
"name": "test-compiler",
|
"name": "test-compiler",
|
||||||
"image": "gcc",
|
"image": "gcc",
|
||||||
"commands": []
|
"commands": std.flatMap(test_compiler_version, compiler_versions)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user