drone-template-lib/.drone.yml

57 lines
771 B
YAML
Raw Normal View History

2019-02-19 10:07:06 +01:00
---
kind: pipeline
2020-09-18 18:15:25 +02:00
type: docker
2019-02-19 10:07:06 +01:00
name: testing
2018-03-30 01:04:58 +02:00
2019-02-19 10:07:06 +01:00
platform:
os: linux
arch: amd64
2018-03-30 01:04:58 +02:00
2019-02-19 10:07:06 +01:00
steps:
2020-09-18 18:15:25 +02:00
- 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
2019-02-19 10:07:06 +01:00
- name: vet
2020-09-18 18:15:25 +02:00
image: golang:1.15
2019-02-19 10:07:06 +01:00
commands:
- go vet ./...
volumes:
- name: gopath
path: /go
- name: test
2020-09-18 18:15:25 +02:00
image: golang:1.15
2019-02-19 10:07:06 +01:00
commands:
2020-09-18 18:15:25 +02:00
- go test -cover -v ./...
2019-02-19 10:07:06 +01:00
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}
2020-09-18 18:15:25 +02:00
...