[tor-commits] [check/master] Run go vet && fmt before testing

arlo at torproject.org arlo at torproject.org
Thu Jul 9 04:11:23 UTC 2015


commit 904d3360c637dc83b39cc49fb831e35a64bf2f96
Author: Arlo Breault <arlolra at gmail.com>
Date:   Wed Jul 8 21:06:18 2015 -0700

    Run go vet && fmt before testing
---
 Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index bf23366..6264564 100644
--- a/Makefile
+++ b/Makefile
@@ -78,11 +78,12 @@ data/langs: data/
 i18n: locale/ data/langs
 
 build:
-	go fmt
 	go build
 
 # Add -i for installing latest version, -v for verbose
 test: build
+	! gofmt -l . 2>&1 | read
+	go vet
 	go test -v -run "$(filter)"
 
 cover: build





More information about the tor-commits mailing list