Skip to content

Commit

Permalink
Add format task to all and silence large output
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Diaz-Padron committed May 6, 2014
1 parent 9ed70ca commit 715b29b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
PACKAGES = $(shell go list ./...)

all: deps
all: deps format
@mkdir -p bin/
@bash --norc -i ./scripts/build.sh

Expand All @@ -10,8 +10,9 @@ cov:
open /tmp/coverage.html

deps:
go get -d -v ./...
echo $(DEPS) | xargs -n1 go get -d
@echo "--> Installing build dependencies"
@go get -d -v ./...
@echo $(DEPS) | xargs -n1 go get -d

test: deps
go list ./... | xargs -n1 go test
Expand All @@ -20,7 +21,8 @@ integ:
go list ./... | INTEG_TESTS=yes xargs -n1 go test

format:
go fmt $(PACKAGES)
@echo "--> Running go fmt"
@go fmt $(PACKAGES)

web:
./scripts/website_run.sh
Expand Down

0 comments on commit 715b29b

Please sign in to comment.