Try wrap pipeline in array

This commit is contained in:
Danila Fedorin 2020-02-11 14:20:47 -08:00
parent 1917c08e51
commit 12725500a8

View File

@ -1,16 +1,23 @@
local compiler_versions = {
"commands": []
};
local compiler_versions = [
"04", "05", "06", "07", "08", "09"
];
local test_compiler_version(version) = [
"cd code/compiler/%(version)",
"mkdir build && cd build",
"cd .."
];
{
"kind": "pipeline",
"type": "docker",
"name": "default",
"steps": [
{
"name": "test-compiler",
"image": "gcc",
"commands": []
}
]
}
[
{
"kind": "pipeline",
"type": "docker",
"name": "default",
"steps": [
{
"name": "test-compiler",
"image": "gcc",
"commands": std.flatMap(test_compiler_version, compiler_versions)
}
]
}
]