Merge pull request #8 from donny-dont/update-build

Update build
This commit is contained in:
Brad Rydzewski 2020-09-22 13:00:07 -04:00 committed by GitHub
commit 0e6b955d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 9 deletions

View File

@ -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/**
...

View File

@ -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)