From f7baa3b5ea99f8c87196ebe8d9f123912f86c13a Mon Sep 17 00:00:00 2001 From: mrd0ll4r Date: Fri, 20 May 2016 13:12:51 -0400 Subject: [PATCH] travis: add golint, goimports and go vet (#173) --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index e317b6a..e924e55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,13 @@ go: sudo: false install: - go get -t ./... +- go get -u github.com/golang/lint/golint +- go get -u golang.org/x/tools/cmd/goimports script: - go test -v $(go list ./... | grep -v /vendor/) +- go vet $(go list ./... | grep -v /vendor/) +- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "") +- for d in $(go list ./... | grep -v /vendor/); do diff <(golint $d) <(printf ""); done notifications: irc: channels: