change drone ci to use jsonnet.

This commit is contained in:
2020-07-20 19:22:05 +02:00
parent c25a467546
commit 209b2f4d37
2 changed files with 26 additions and 70 deletions
+26
View File
@@ -0,0 +1,26 @@
local Pipeline(version, mod) = {
kind: "pipeline",
name: "test-" + version,
workspace: if mod then "/project/irc" else "/go/src/github.com/gissleh/irc",
steps: [
{
name: "test",
image: "goland:" + version,
commands: [
if mod then "go mod download" else "go get",
"go test -v ./...",
"go test -bench ./..."
]
}
]
};
[
Pipeline("1.14", true),
Pipeline("1.13", true),
Pipeline("1.12", true),
Pipeline("1.11", true),
Pipeline("1.11", false),
Pipeline("1.11", false),
Pipeline("1.11", false),
]