forked from aripalo/vegas-credentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (18 loc) · 740 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Multi-platform binary build
# http://www.codershaven.com/multi-platform-makefile-for-go/
.PHONY: all test clean
BIN_FOLDER="bin"
build: clean ## Build binaries
@(goreleaser release --snapshot --rm-dist)
all: test build ## Build and run tests
test: clean ## Run unit tests
@(go test ./... -coverprofile=coverage.out)
clean: ## Remove previous build
@(go clean)
@(rm -rf $(BIN_FOLDER))
bump: ## Do a version bump
@(npx standard-version --skip.changelog)
bump-check: ## Check which would be the next version
@(npx standard-version --skip.changelog --dry-run)
help: ## Display available commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'