k3s/vendor/sigs.k8s.io/yaml/.travis.yml

14 lines
330 B
YAML
Raw Normal View History

2019-01-12 04:58:27 +00:00
language: go
dist: xenial
go:
2020-03-26 21:07:15 +00:00
- 1.12.x
- 1.13.x
2019-01-12 04:58:27 +00:00
script:
2020-03-26 21:07:15 +00:00
- diff -u <(echo -n) <(gofmt -d *.go)
2019-01-12 04:58:27 +00:00
- diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON)
2020-03-26 21:07:15 +00:00
- GO111MODULE=on go vet .
- GO111MODULE=on go test -v -race ./...
- git diff --exit-code
2019-01-12 04:58:27 +00:00
install:
2020-03-26 21:07:15 +00:00
- GO111MODULE=off go get golang.org/x/lint/golint