mirror of
https://github.com/thegeeklab/drone-template-lib.git
synced 2024-11-28 23:50:35 +00:00
Migrate drone config to 1.0.0
This commit is contained in:
parent
93b7ded1c6
commit
a19c0e3def
48
.drone.yml
48
.drone.yml
@ -1,18 +1,40 @@
|
|||||||
workspace:
|
---
|
||||||
base: /go
|
kind: pipeline
|
||||||
path: src/github.com/drone/drone-template-lib
|
name: testing
|
||||||
|
|
||||||
pipeline:
|
platform:
|
||||||
deps:
|
os: linux
|
||||||
image: golang:1.10
|
arch: amd64
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- go get -u github.com/golang/dep/cmd/dep
|
|
||||||
- dep ensure
|
|
||||||
|
|
||||||
test:
|
steps:
|
||||||
image: golang:1.10
|
- name: vet
|
||||||
pull: true
|
pull: always
|
||||||
|
image: golang:1.11
|
||||||
commands:
|
commands:
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
|
environment:
|
||||||
|
GO111MODULE: on
|
||||||
|
volumes:
|
||||||
|
- name: gopath
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
pull: always
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
- go test -cover ./...
|
- go test -cover ./...
|
||||||
|
environment:
|
||||||
|
GO111MODULE: on
|
||||||
|
volumes:
|
||||||
|
- name: gopath
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: gopath
|
||||||
|
temp: {}
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
- "refs/tags/**"
|
||||||
|
- "refs/pull/**"
|
||||||
|
Loading…
Reference in New Issue
Block a user