Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
680 B

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