Gisle Aune
4 years ago
2 changed files with 26 additions and 70 deletions
-
26.drone.jsonnet
-
70.drone.yml
@ -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), |
|||
] |
@ -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." |
Write
Preview
Loading…
Cancel
Save
Reference in new issue