blob: d20e23eff4394922da94b769c60beaf721bdac4e [file] [log] [blame]
David Bainbridge86971522019-09-26 22:09:39 +00001language: go
2dist: xenial
3go:
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00004 - 1.12.x
5 - 1.13.x
David Bainbridge86971522019-09-26 22:09:39 +00006script:
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00007 - diff -u <(echo -n) <(gofmt -d *.go)
David Bainbridge86971522019-09-26 22:09:39 +00008 - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON)
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00009 - GO111MODULE=on go vet .
10 - GO111MODULE=on go test -v -race ./...
11 - git diff --exit-code
David Bainbridge86971522019-09-26 22:09:39 +000012install:
David K. Bainbridgebd6b2882021-08-26 13:31:02 +000013 - GO111MODULE=off go get golang.org/x/lint/golint