diff --git a/.drone.jsonnet b/.drone.jsonnet index 1eb17b8..9fc8d8c 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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) + } + ] + } +]