From cc20d5947a60e4f5a1329739c6a49305135e6dde Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 18 Sep 2020 09:15:25 -0700 Subject: [PATCH 1/3] 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/** +... From 6783f6618eaaed9fe0b5a79f923ee6918302d0ee Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 18 Sep 2020 10:41:35 -0700 Subject: [PATCH 2/3] Update drone badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ce25b4..a1077c9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # drone-template-lib -[![Build Status](http://beta.drone.io/api/badges/drone/drone-template-lib/status.svg)](http://beta.drone.io/drone/drone-template-lib) +[![Build Status](https://cloud.drone.io/api/badges/drone/drone-template-lib/status.svg)](https://cloud.drone.io/drone/drone-template-lib) [![Join the discussion at https://discourse.drone.io](https://img.shields.io/badge/discourse-forum-orange.svg)](https://discourse.drone.io) [![Drone questions at https://stackoverflow.com](https://img.shields.io/badge/drone-stackoverflow-orange.svg)](https://stackoverflow.com/questions/tagged/drone.io) [![Go Doc](https://godoc.org/github.com/drone/drone-template-lib?status.svg)](http://godoc.org/github.com/drone/drone-template-lib) From bac9713ed194f0272b8bc7d53a94de94157fec2b Mon Sep 17 00:00:00 2001 From: Don Date: Mon, 21 Sep 2020 07:55:24 -0700 Subject: [PATCH 3/3] Remove pull --- .drone.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 00efe6c..59f116b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,6 @@ platform: steps: - name: environment - pull: always image: golang:1.15 commands: - go version @@ -19,7 +18,6 @@ steps: path: /go - name: staticcheck - pull: never image: golang:1.15 commands: - go run honnef.co/go/tools/cmd/staticcheck ./... @@ -28,7 +26,6 @@ steps: path: /go - name: lint - pull: never image: golang:1.15 commands: - go run golang.org/x/lint/golint -set_exit_status ./... @@ -37,7 +34,6 @@ steps: path: /go - name: vet - pull: never image: golang:1.15 commands: - go vet ./... @@ -46,7 +42,6 @@ steps: path: /go - name: test - pull: never image: golang:1.15 commands: - go test -cover -v ./...