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