Merge pull request #1491 from nak3/add-format-to-test

Add go fmt before running test in Makefile
This commit is contained in:
Alex Dadgar
2016-08-03 10:02:48 -07:00
committed by GitHub

View File

@@ -27,6 +27,11 @@ cov:
open /tmp/coverage.html
test: generate
@echo "--> Running go fmt" ;
@if [ -n "`go fmt ${PACKAGES}`" ]; then \
echo "[ERR] go fmt updated formatting. Please commit formatted code first."; \
exit 1; \
fi
@sh -c "'$(PWD)/scripts/test.sh'"
@$(MAKE) vet