diff --git a/.drone.jsonnet b/.drone.jsonnet new file mode 100644 index 0000000..2fd4ff5 --- /dev/null +++ b/.drone.jsonnet @@ -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), +] \ No newline at end of file diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index cfceb51..0000000 --- a/.drone.yml +++ /dev/null @@ -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." \ No newline at end of file