mirror of https://github.com/status-im/consul.git
Merge pull request #129 from carlosdp/makefile-format
LGTM! Thanks! Good read on `go fmt`: http://blog.golang.org/go-fmt-your-code
This commit is contained in:
commit
219cbd62f7
14
Makefile
14
Makefile
|
@ -1,6 +1,7 @@
|
||||||
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
|
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
|
||||||
|
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
|
||||||
|
|
||||||
|
@ -9,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
|
||||||
|
@ -18,6 +20,10 @@ test: deps
|
||||||
integ:
|
integ:
|
||||||
go list ./... | INTEG_TESTS=yes xargs -n1 go test
|
go list ./... | INTEG_TESTS=yes xargs -n1 go test
|
||||||
|
|
||||||
|
format:
|
||||||
|
@echo "--> Running go fmt"
|
||||||
|
@go fmt $(PACKAGES)
|
||||||
|
|
||||||
web:
|
web:
|
||||||
./scripts/website_run.sh
|
./scripts/website_run.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue