-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 1.1 KB
/
Makefile
File metadata and controls
50 lines (35 loc) · 1.1 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
GO := go
GOTAGS := fts5
GOFLAGS := -tags=$(GOTAGS)
XGORELEASER_IMAGE := oryd/xgoreleaser:1.26.0-2.14.1
.PHONY: build build-local build-bench-swe test e2e e2e-lang lint vet tidy clean format plugin-dev
build:
docker run --platform linux/amd64 --mount type=bind,source="$$(pwd)",target=/project \
$(XGORELEASER_IMAGE) --snapshot --clean
build-local:
CGO_ENABLED=1 $(GO) build $(GOFLAGS) \
-o bin/lumen .
build-bench-swe:
cd bench-swe && $(GO) build -o ../bin/bench-swe .
test:
CGO_ENABLED=1 $(GO) test $(GOFLAGS) ./...
e2e:
CGO_ENABLED=1 $(GO) test -tags=$(GOTAGS),e2e -timeout=10m -v -count=1 -run 'TestE2E_' ./...
e2e-lang:
CGO_ENABLED=1 $(GO) test -tags=$(GOTAGS),e2e -timeout=30m -v -count=1 -run 'TestLang_' ./...
lint:
golangci-lint run
vet:
$(GO) vet ./...
tidy:
$(GO) mod tidy
clean:
rm -rf bin/ dist/
format:
goimports -w .
npx --yes prettier --write "**/*.{json,md,mdx,yaml,yml}"
npx --yes doctoc --github README.md
plugin-dev: build-local
@echo "Run: claude --plugin-dir ."
vhs:
export CLAUDE_PLUGIN_ROOT=$(pwd) && cd testdata/fixtures/go && vhs ../../../docs/demo/demo.tape