2019-02-19 09:07:06 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2020-09-18 16:15:25 +00:00
|
|
|
type: docker
|
2019-02-19 09:07:06 +00:00
|
|
|
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:
|
2020-09-18 16:15:25 +00:00
|
|
|
- name: environment
|
|
|
|
pull: always
|
|
|
|
image: golang:1.15
|
|
|
|
commands:
|
|
|
|
- go version
|
|
|
|
- go env
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: staticcheck
|
|
|
|
pull: never
|
|
|
|
image: golang:1.15
|
|
|
|
commands:
|
|
|
|
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: lint
|
|
|
|
pull: never
|
|
|
|
image: golang:1.15
|
|
|
|
commands:
|
|
|
|
- go run golang.org/x/lint/golint -set_exit_status ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
2019-02-19 09:07:06 +00:00
|
|
|
- name: vet
|
2020-09-18 16:15:25 +00:00
|
|
|
pull: never
|
|
|
|
image: golang:1.15
|
2019-02-19 09:07:06 +00:00
|
|
|
commands:
|
|
|
|
- go vet ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: test
|
2020-09-18 16:15:25 +00:00
|
|
|
pull: never
|
|
|
|
image: golang:1.15
|
2019-02-19 09:07:06 +00:00
|
|
|
commands:
|
2020-09-18 16:15:25 +00:00
|
|
|
- go test -cover -v ./...
|
2019-02-19 09:07:06 +00:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
|
|
|
|
2020-09-18 16:15:25 +00:00
|
|
|
...
|