mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 19:32:52 +00:00
change drone ci to use jsonnet.
This commit is contained in:
@@ -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),
|
||||||
|
]
|
||||||
-70
@@ -1,70 +0,0 @@
|
|||||||
name: irc
|
|
||||||
kind: pipeline
|
|
||||||
type: exec
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /project
|
|
||||||
path: irc/
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
test-1.14:
|
|
||||||
image: golang:1.14
|
|
||||||
commands:
|
|
||||||
- go mod download
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
test-1.13:
|
|
||||||
image: golang:1.13
|
|
||||||
commands:
|
|
||||||
- go mod download
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
test-1.12:
|
|
||||||
image: golang:1.12
|
|
||||||
commands:
|
|
||||||
- go mod download
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
test-1.11:
|
|
||||||
image: golang:1.11
|
|
||||||
commands:
|
|
||||||
- go mod download
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
test-1.10:
|
|
||||||
image: golang:1.10
|
|
||||||
commands:
|
|
||||||
- mkdir -p /go/src/github.com/gissleh/
|
|
||||||
- ln -s /project/irc /go/src/github.com/gissleh/irc
|
|
||||||
- cd /go/src/github.com/gissleh/irc/
|
|
||||||
- ls -lR
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
test-1.9:
|
|
||||||
image: golang:1.9
|
|
||||||
commands:
|
|
||||||
- mkdir -p /go/src/github.com/gissleh/
|
|
||||||
- ln -s /project/irc /go/src/github.com/gissleh/irc
|
|
||||||
- cd /go/src/github.com/gissleh/irc/
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
test-1.8:
|
|
||||||
image: golang:1.8
|
|
||||||
commands:
|
|
||||||
- mkdir -p /go/src/github.com/gissleh/
|
|
||||||
- ln -s /project/irc /go/src/github.com/gissleh/irc
|
|
||||||
- cd /go/src/github.com/gissleh/irc/
|
|
||||||
- go test ./... -v
|
|
||||||
- go test -bench ./...
|
|
||||||
done:
|
|
||||||
image: golang:1.8
|
|
||||||
depends_on:
|
|
||||||
- test-1.14
|
|
||||||
- test-1.13
|
|
||||||
- test-1.12
|
|
||||||
- test-1.11
|
|
||||||
- test-1.10
|
|
||||||
- test-1.9
|
|
||||||
- test-1.8
|
|
||||||
commands:
|
|
||||||
- "Dummy step for parallelization."
|
|
||||||
Reference in New Issue
Block a user