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 ./...