diff --git a/.drone.yml b/.drone.yml index ffb86b2..59f116b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,6 @@ --- kind: pipeline +type: docker name: testing platform: @@ -7,8 +8,33 @@ platform: arch: amd64 steps: +- name: environment + image: golang:1.15 + commands: + - go version + - go env + volumes: + - name: gopath + path: /go + +- name: staticcheck + image: golang:1.15 + commands: + - go run honnef.co/go/tools/cmd/staticcheck ./... + volumes: + - name: gopath + path: /go + +- name: lint + 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 + image: golang:1.15 commands: - go vet ./... volumes: @@ -16,9 +42,9 @@ steps: path: /go - name: test - image: golang:1.12 + image: golang:1.15 commands: - - go test -cover ./... + - go test -cover -v ./... volumes: - name: gopath path: /go @@ -27,8 +53,4 @@ volumes: - name: gopath temp: {} -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** +... 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)