From 5bed960bd9a9fb68ec98c1abf7a3a1e8d942ef65 Mon Sep 17 00:00:00 2001 From: Daniel Hess Date: Sun, 17 May 2020 19:23:29 -0700 Subject: [PATCH 1/2] should test all things --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1bbfa2a..0e8b47b 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:]') From 7460481a2a869bd998d60512d6bee21fc52de0b2 Mon Sep 17 00:00:00 2001 From: Daniel Hess Date: Sun, 17 May 2020 19:23:57 -0700 Subject: [PATCH 2/2] adding deploy target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0e8b47b..4a47e03 100644 --- a/Makefile +++ b/Makefile @@ -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