tango/.drone.yml
Lunny Xiao 964f0f7570
All checks were successful
continuous-integration/drone/push Build is passing
new format drone (#60)
2019-08-13 10:58:46 +00:00

111 lines
1.5 KiB
YAML

---
kind: pipeline
name: go110
platform:
os: linux
arch: amd64
clone:
disable: true
workspace:
base: /go
path: src/gitea.com/lunny/tango
steps:
- name: git
pull: default
image: plugins/git:next
settings:
depth: 50
tags: true
- name: test
pull: default
image: golang:1.10
commands:
- go get -t -d -v ./...
- go build -v
- go vet ./...
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
when:
event:
- push
- pull_request
---
kind: pipeline
name: go111
platform:
os: linux
arch: amd64
clone:
disable: true
workspace:
base: /go
path: src/tango111
steps:
- name: git
pull: default
image: plugins/git:next
settings:
depth: 50
tags: true
- name: test
pull: default
image: golang:1.11
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- go build -v
- go vet ./...
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
when:
event:
- push
- pull_request
---
kind: pipeline
name: go112
platform:
os: linux
arch: amd64
clone:
disable: true
workspace:
base: /go
path: src/tango112
steps:
- name: git
pull: default
image: plugins/git:next
settings:
depth: 50
tags: true
- name: test
pull: default
image: golang:1.12
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- go build -v
- go vet ./...
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
when:
event:
- push
- pull_request