From cc20d5947a60e4f5a1329739c6a49305135e6dde Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 18 Sep 2020 09:15:25 -0700 Subject: [PATCH] Update build --- .drone.yml | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index ffb86b2..00efe6c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,6 @@ --- kind: pipeline +type: docker name: testing platform: @@ -7,8 +8,37 @@ platform: arch: amd64 steps: +- name: environment + pull: always + image: golang:1.15 + commands: + - go version + - go env + volumes: + - name: gopath + path: /go + +- name: staticcheck + pull: never + image: golang:1.15 + commands: + - go run honnef.co/go/tools/cmd/staticcheck ./... + volumes: + - name: gopath + path: /go + +- name: lint + pull: never + image: golang:1.15 + commands: + - go run golang.org/x/lint/golint -set_exit_status ./... + volumes: + - name: gopath + path: /go + - name: vet - image: golang:1.12 + pull: never + image: golang:1.15 commands: - go vet ./... volumes: @@ -16,9 +46,10 @@ steps: path: /go - name: test - image: golang:1.12 + pull: never + image: golang:1.15 commands: - - go test -cover ./... + - go test -cover -v ./... volumes: - name: gopath path: /go @@ -27,8 +58,4 @@ volumes: - name: gopath temp: {} -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** +...