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