diff --git a/Makefile b/Makefile index 1bbfa2a..4a47e03 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ GOBUILD=$(GOCMD) build GOCLEAN=$(GOCMD) clean GOLIST=$(GOCMD) list GOVET=$(GOCMD) vet -GOTEST=$(GOCMD) test -v +GOTEST=$(GOCMD) test -v ./... GOFMT=$(GOCMD) fmt CGO_ENABLED ?= 0 GOOS ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') @@ -40,6 +40,10 @@ coverage: ## Generates the total code coverage of the project @tail -q -n +2 $(COVERAGE_DIR)/*.out >> $(COVERAGE_DIR)/tmp/full.out @$(GOCMD) tool cover -func=$(COVERAGE_DIR)/tmp/full.out | tail -n 1 | sed -e 's/^.*statements)[[:space:]]*//' -e 's/%//' +.PHONY: deploy +deploy: ## Deploy the artifacts + @ext/goreleaser release + .PHONY: help help: ## Show This Help @for line in $$(cat Makefile | grep "##" | grep -v "grep" | sed "s/:.*##/:/g" | sed "s/\ /!/g"); do verb=$$(echo $$line | cut -d ":" -f 1); desc=$$(echo $$line | cut -d ":" -f 2 | sed "s/!/\ /g"); printf "%-30s--%s\n" "$$verb" "$$desc"; done