Makefile to grab test dependencies

This commit is contained in:
Mitchell Hashimoto 2013-03-25 14:17:21 -07:00
parent bde32e964f
commit 791e048268
1 changed files with 6 additions and 3 deletions

View File

@ -1,12 +1,15 @@
all: all:
@mkdir -p bin/ @mkdir -p bin/
go get -d ./... go get -d -v ./...
go build -a -o bin/packer go build -v -o bin/packer
format: format:
go fmt ./... go fmt ./...
test: test:
@go list -f '{{range .TestImports}}{{.}}\
{{end}}' ./... | xargs -n1 go get -d
@go test -i ./...
go test ./... go test ./...
.PHONY: all test .PHONY: all format test