blob: d20e23eff4394922da94b769c60beaf721bdac4e [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001language: go
2dist: xenial
3go:
4 - 1.12.x
5 - 1.13.x
6script:
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
12install:
13 - GO111MODULE=off go get golang.org/x/lint/golint