37 lines
548 B
YAML
37 lines
548 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
|
||
|
- name: build
|
||
|
image: golang
|
||
|
environment:
|
||
|
CGO_ENABLED: 1
|
||
|
GOOS: linux
|
||
|
commands:
|
||
|
- go test ./...
|
||
|
- go build -a -installsuffix cgo .
|
||
|
|
||
|
- name: lint
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go get -u golang.org/x/lint/golint
|
||
|
- golint -set_exit_status ./...
|
||
|
|
||
|
- name: vet
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go vet ./...
|
||
|
|
||
|
trigger:
|
||
|
event:
|
||
|
- push
|
||
|
|
||
|
---
|
||
|
kind: signature
|
||
|
hmac: 663682f7b45c7f2629991785fc04170d60a0232719bac11d29620882ad857277
|
||
|
|
||
|
...
|