From c103c6acbfe0b83ff16a54dbddc98a3fc47609df Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 11 Feb 2020 13:40:00 -0800 Subject: [PATCH] Try to build multiple compiler versions --- .drone.jsonnet | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index c4bedea..24b6e7c 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,3 +1,9 @@ +local test_compiler_version(version) = [ + "cd code/compiler/%(version)", + "mkdir build && cd build", + "cd .." +] + { "kind": "pipeline", "type": "docker", @@ -6,10 +12,7 @@ { "name": "test-compiler", "image": "gcc", - "commands": [ - "cd code/compiler/09", - "mkdir build && cd build" - ] + "commands": std.flatMap(test_compiler_version, [4,5,6,7,8,9]) } ] }