drone-template-lib/.drone.yml

41 lines
509 B
YAML
Raw Normal View History

2019-02-19 09:07:06 +00:00
---
kind: pipeline
name: testing
2018-03-29 23:04:58 +00:00
2019-02-19 09:07:06 +00:00
platform:
os: linux
arch: amd64
2018-03-29 23:04:58 +00:00
2019-02-19 09:07:06 +00:00
steps:
- name: vet
pull: always
image: golang:1.11
commands:
- go vet ./...
environment:
GO111MODULE: on
volumes:
- name: gopath
path: /go
- name: test
pull: always
image: golang:1.11
commands:
- go test -cover ./...
environment:
GO111MODULE: on
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"