khenaidoo | 59ce9dd | 2019-11-11 13:05:32 -0500 | [diff] [blame] | 1 | language: go |
| 2 | dist: xenial |
| 3 | go: |
khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 4 | - 1.12.x |
| 5 | - 1.13.x |
khenaidoo | 59ce9dd | 2019-11-11 13:05:32 -0500 | [diff] [blame] | 6 | script: |
khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 7 | - diff -u <(echo -n) <(gofmt -d *.go) |
khenaidoo | 59ce9dd | 2019-11-11 13:05:32 -0500 | [diff] [blame] | 8 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) |
khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 9 | - GO111MODULE=on go vet . |
| 10 | - GO111MODULE=on go test -v -race ./... |
| 11 | - git diff --exit-code |
khenaidoo | 59ce9dd | 2019-11-11 13:05:32 -0500 | [diff] [blame] | 12 | install: |
khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 13 | - GO111MODULE=off go get golang.org/x/lint/golint |