mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 17:42:53 +00:00
26 lines
560 B
Jsonnet
26 lines
560 B
Jsonnet
local Pipeline(version, mod) = {
|
|
kind: "pipeline",
|
|
name: 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),
|
|
] |