From ef36cd4b9069ef58012cfd08764d855d163af81d Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Mon, 20 Jul 2020 18:31:59 +0200 Subject: [PATCH] change drone ci to allow for testing with older versions. --- .drone.yml | 39 +++++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 786c40b..7524635 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,17 +7,36 @@ workspace: path: irc/ pipeline: - test: - name: test-go-${GO_VERSION} - image: golang:${GO_VERSION} + test-1.10: + image: golang:1.10 + commands: + - mkdir -p /go/src/github.com/gissleh/ + - mv /project/irc /go/src/github.com/gissleh/ + - cd /go/src/github.com/gissleh/irc/ + - go get + - 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.12: + image: golang:1.12 + 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.14: + image: golang:1.14 commands: - go mod download - go test ./... -v - go test -bench ./... - -matrix: - GO_VERSION: - - "1.11" - - "1.12" - - "1.13" - - "1.14"