2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-12 14:55:02 +00:00

32 lines
565 B
Makefile
Raw Normal View History

2014-05-06 01:34:24 -04:00
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
2014-05-06 01:38:21 -04:00
PACKAGES = $(shell go list ./...)
2013-12-06 15:43:07 -08:00
all: deps
@mkdir -p bin/
@bash --norc -i ./scripts/build.sh
cov:
gocov test ./... | gocov-html > /tmp/coverage.html
open /tmp/coverage.html
deps:
go get -d -v ./...
echo $(DEPS) | xargs -n1 go get -d
test: deps
go list ./... | xargs -n1 go test
integ:
go list ./... | INTEG_TESTS=yes xargs -n1 go test
2014-05-06 01:38:21 -04:00
format:
go fmt $(PACKAGES)
2013-12-06 15:43:07 -08:00
web:
./scripts/website_run.sh
web-push:
./scripts/website_push.sh
.PNONY: all cov deps integ test web web-push