-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (61 loc) · 1.81 KB
/
Copy pathMakefile
File metadata and controls
79 lines (61 loc) · 1.81 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# SPDX-License-Identifier: Apache-2.0
# Copyright 2026 Milos Vasic
.PHONY: all build test test-race test-cover vet fmt tidy clean help
# Default target
all: tidy vet test build
# Build the binary
build:
go build ./...
# Run tests
test:
go test ./... -count=1
# Run tests with race detection
test-race:
go test ./... -race -count=1
# Run tests with coverage
test-cover:
go test ./... -race -count=1 -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report: coverage.html"
# Run go vet
vet:
go vet ./...
# Format code
fmt:
gofmt -s -w .
# Tidy modules
tidy:
go mod tidy
# Clean build artifacts
clean:
rm -f coverage.out coverage.html
go clean ./...
# Show help
help:
@echo "DocProcessor - Documentation processing and feature map extraction"
@echo ""
@echo "Targets:"
@echo " all - tidy, vet, test, build (default)"
@echo " build - Build all packages"
@echo " test - Run tests"
@echo " test-race - Run tests with race detection"
@echo " test-cover - Run tests with coverage report"
@echo " vet - Run go vet"
@echo " fmt - Format code"
@echo " tidy - Run go mod tidy"
@echo " clean - Remove build artifacts"
@echo " help - Show this help"
# Definition of Done gates — portable drop-in from HelixAgent
.PHONY: no-silent-skips no-silent-skips-warn demo-all demo-all-warn demo-one ci-validate-all
no-silent-skips:
@bash scripts/no-silent-skips.sh
no-silent-skips-warn:
@NO_SILENT_SKIPS_WARN_ONLY=1 bash scripts/no-silent-skips.sh
demo-all:
@bash scripts/demo-all.sh
demo-all-warn:
@DEMO_ALL_WARN_ONLY=1 DEMO_ALLOW_TODO=1 bash scripts/demo-all.sh
demo-one:
@DEMO_MODULES="$(MOD)" bash scripts/demo-all.sh
ci-validate-all: no-silent-skips-warn demo-all-warn
@echo "ci-validate-all: all gates executed"