31 lines
485 B
YAML
31 lines
485 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 .
|
|
- go get golang.org/x/lint
|
|
- echo $$GOPATH
|
|
- ls $$GOPATH/bin
|
|
- $$GOPATH/bin/golint ./...
|
|
- go vet ./...
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
---
|
|
kind: signature
|
|
hmac: ff5dbe260d6c5788c28fad09cb0bf774af3d682a74aaa47451f6b0f3c6581960
|
|
|
|
...
|