-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 796 Bytes
/
Makefile
File metadata and controls
29 lines (25 loc) · 796 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
28
29
# ctm Makefile — Go build and regression orchestration.
.PHONY: build help regression
help:
@echo "Targets:"
@echo " build — go build ./..."
@echo " regression — full pre-merge pack: go build/test/race/vuln"
build:
@echo "==> go build"
go build -trimpath ./...
# Unified regression pack. Runs everything a PR must clear before merge.
# Fails fast — first non-zero exit stops the run.
#
# Contract: every shipped bug fix or new feature adds a test case that
# executes under one of these steps. The pack grows; it does not get
# replaced.
regression:
@echo "==> go build ./..."
go build ./...
@echo "==> go test ./..."
go test ./...
@echo "==> go test -race ./..."
go test -race ./...
@echo "==> govulncheck ./..."
govulncheck ./...
@echo "==> regression pack OK"