Skip to content

Commit 2ad7b8a

Browse files
authored
Merge pull request #21 from gomicro/fix-makefile
fix makefile
2 parents 5d74ea4 + 7460481 commit 2ad7b8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GOBUILD=$(GOCMD) build
88
GOCLEAN=$(GOCMD) clean
99
GOLIST=$(GOCMD) list
1010
GOVET=$(GOCMD) vet
11-
GOTEST=$(GOCMD) test -v
11+
GOTEST=$(GOCMD) test -v ./...
1212
GOFMT=$(GOCMD) fmt
1313
CGO_ENABLED ?= 0
1414
GOOS ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')
@@ -40,6 +40,10 @@ coverage: ## Generates the total code coverage of the project
4040
@tail -q -n +2 $(COVERAGE_DIR)/*.out >> $(COVERAGE_DIR)/tmp/full.out
4141
@$(GOCMD) tool cover -func=$(COVERAGE_DIR)/tmp/full.out | tail -n 1 | sed -e 's/^.*statements)[[:space:]]*//' -e 's/%//'
4242

43+
.PHONY: deploy
44+
deploy: ## Deploy the artifacts
45+
@ext/goreleaser release
46+
4347
.PHONY: help
4448
help: ## Show This Help
4549
@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

0 commit comments

Comments
 (0)