blob: d20e23eff4394922da94b769c60beaf721bdac4e [file] [log] [blame]
khenaidooab1f7bd2019-11-14 14:00:27 -05001language: go
2dist: xenial
3go:
khenaidood948f772021-08-11 17:49:24 -04004 - 1.12.x
5 - 1.13.x
khenaidooab1f7bd2019-11-14 14:00:27 -05006script:
khenaidood948f772021-08-11 17:49:24 -04007 - diff -u <(echo -n) <(gofmt -d *.go)
khenaidooab1f7bd2019-11-14 14:00:27 -05008 - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON)
khenaidood948f772021-08-11 17:49:24 -04009 - GO111MODULE=on go vet .
10 - GO111MODULE=on go test -v -race ./...
11 - git diff --exit-code
khenaidooab1f7bd2019-11-14 14:00:27 -050012install:
khenaidood948f772021-08-11 17:49:24 -040013 - GO111MODULE=off go get golang.org/x/lint/golint