-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 935 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 935 Bytes
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
27
PROJECT := loopmux
VERSION ?=
REPO ?=
TAP_REPO ?=
NO_BREW ?=0
.PHONY: help release smoke-post-release smoke-trigger-e2e
help: ## Show available targets
@printf "$(PROJECT) release tooling\n\n"
@printf "Targets:\n"
@grep -E '^[a-zA-Z_-]+:.*## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf " %-16s %s\n", $$1, $$2}'
release: ## Run full release flow (VERSION=x.y.z)
@test -n "$(VERSION)" || (printf "error: pass VERSION=x.y.z\n" >&2; exit 1)
@set -e; \
args=""; \
if [ -n "$(REPO)" ]; then args="$$args --repo $(REPO)"; fi; \
if [ -n "$(TAP_REPO)" ]; then args="$$args --tap-repo $(TAP_REPO)"; fi; \
if [ "$(NO_BREW)" = "1" ]; then args="$$args --no-brew"; fi; \
./release/ship.sh "$(VERSION)" $$args
smoke-post-release: ## Run tmux post-release smoke helper
@./scripts/tmux-post-release-smoke.sh
smoke-trigger-e2e: ## Run persistent-marker trigger e2e tmux smoke helper
@./scripts/tmux-trigger-e2e-smoke.sh