Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame] | 1 | language: go |
2 | dist: xenial | ||||
3 | go: | ||||
4 | - 1.12.x | ||||
5 | - 1.13.x | ||||
6 | script: | ||||
7 | - diff -u <(echo -n) <(gofmt -d *.go) | ||||
8 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) | ||||
9 | - GO111MODULE=on go vet . | ||||
10 | - GO111MODULE=on go test -v -race ./... | ||||
11 | - git diff --exit-code | ||||
12 | install: | ||||
13 | - GO111MODULE=off go get golang.org/x/lint/golint |