David Bainbridge | 8697152 | 2019-09-26 22:09:39 +0000 | [diff] [blame] | 1 | language: go |
| 2 | dist: xenial |
| 3 | go: |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 4 | - 1.12.x |
| 5 | - 1.13.x |
David Bainbridge | 8697152 | 2019-09-26 22:09:39 +0000 | [diff] [blame] | 6 | script: |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 7 | - diff -u <(echo -n) <(gofmt -d *.go) |
David Bainbridge | 8697152 | 2019-09-26 22:09:39 +0000 | [diff] [blame] | 8 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 9 | - GO111MODULE=on go vet . |
| 10 | - GO111MODULE=on go test -v -race ./... |
| 11 | - git diff --exit-code |
David Bainbridge | 8697152 | 2019-09-26 22:09:39 +0000 | [diff] [blame] | 12 | install: |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 13 | - GO111MODULE=off go get golang.org/x/lint/golint |