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
|
2019-07-31 23:07:15 +00:00
|
|
|
image: golang:1.12
|
2019-02-19 09:07:06 +00:00
|
|
|
commands:
|
|
|
|
- go vet ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: test
|
2019-07-31 23:07:15 +00:00
|
|
|
image: golang:1.12
|
2019-02-19 09:07:06 +00:00
|
|
|
commands:
|
|
|
|
- go test -cover ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
2019-07-31 23:07:15 +00:00
|
|
|
- refs/tags/**
|
|
|
|
- refs/pull/**
|