Files
irc/.drone.jsonnet
T
gisle 512ba5aa6f
continuous-integration/drone/push Build is passing
change drone ci to use jsonnet.
2020-07-20 19:33:31 +02:00

26 lines
593 B
Jsonnet

local Pipeline(version, mod) = {
kind: "pipeline",
name: version,
workspace: if mod then {base: "/project", path: "irc/"} else {base: "/go", path: "src/github.com/gissleh/irc"},
steps: [
{
name: "test",
image: "golang:" + 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.10", false),
Pipeline("1.9", false),
Pipeline("1.8", false),
]