From c1116ea5068f7afa97c45a20c8c3e98aafd4031d Mon Sep 17 00:00:00 2001 From: Jehiah Czebotar Date: Tue, 28 Mar 2017 23:09:53 -0400 Subject: [PATCH] travis: run gofmt and go vet --- test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.sh b/test.sh index 683fe87..ec34366 100755 --- a/test.sh +++ b/test.sh @@ -1,5 +1,11 @@ #!/bin/bash set -e +echo "gofmt" +diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go' -not -path "./.godeps/*")) +echo "go vet" +go vet ./... +echo "go test" go test -timeout 60s ./... +echo "go test -race" GOMAXPROCS=4 go test -timeout 60s -race ./...