Add format task to all and silence large output

This commit is contained in:
Carlos Diaz-Padron 2014-05-06 01:45:54 -04:00
parent 9ed70ca851
commit 715b29bef2
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
PACKAGES = $(shell go list ./...) PACKAGES = $(shell go list ./...)
all: deps all: deps format
@mkdir -p bin/ @mkdir -p bin/
@bash --norc -i ./scripts/build.sh @bash --norc -i ./scripts/build.sh
@ -10,8 +10,9 @@ cov:
open /tmp/coverage.html open /tmp/coverage.html
deps: deps:
go get -d -v ./... @echo "--> Installing build dependencies"
echo $(DEPS) | xargs -n1 go get -d @go get -d -v ./...
@echo $(DEPS) | xargs -n1 go get -d
test: deps test: deps
go list ./... | xargs -n1 go test go list ./... | xargs -n1 go test
@ -20,7 +21,8 @@ integ:
go list ./... | INTEG_TESTS=yes xargs -n1 go test go list ./... | INTEG_TESTS=yes xargs -n1 go test
format: format:
go fmt $(PACKAGES) @echo "--> Running go fmt"
@go fmt $(PACKAGES)
web: web:
./scripts/website_run.sh ./scripts/website_run.sh