-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
44 lines (33 loc) · 1.63 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
.PHONY: validate-manifests validate-local validate-powershell validate-live validate-all \
test-first-run test-restore test-first-run-win test-restore-win reinstall-plugin-win
GIT_LRC_DIR?=/home/shrsv/bin/git-lrc
validate-manifests:
claude plugin validate .
claude plugin validate ./plugins/lrc
validate-local: validate-manifests
CLAUDE_LRC_DIR="$(CURDIR)" $(MAKE) -C $(GIT_LRC_DIR) test-install-local test-plugin-bootstrap test-plugin-hooks test-loop-prevention
validate-powershell: validate-manifests
CLAUDE_LRC_DIR="$(CURDIR)" $(MAKE) -C $(GIT_LRC_DIR) test-powershell-smoke
validate-live: validate-manifests
CLAUDE_LRC_DIR="$(CURDIR)" LIVE=1 $(MAKE) -C $(GIT_LRC_DIR) test-live-smoke
validate-all: validate-local validate-powershell
# Tear down git-lrc completely and reinstall the local plugin for first-run testing.
# After this runs: start a Claude session and trigger /lrc:review.
test-first-run:
@bash scripts/test-first-run.sh
# Restore ~/.lrc.toml from the backup made by test-first-run.
test-restore:
@if [ ! -f /tmp/lrc-test-toml.bak ]; then \
echo "⚠️ No backup found at /tmp/lrc-test-toml.bak"; \
exit 1; \
fi
@cp /tmp/lrc-test-toml.bak "$(HOME)/.lrc.toml"
@echo "✅ Restored ~/.lrc.toml from /tmp/lrc-test-toml.bak"
# Windows equivalents of test-first-run / test-restore.
test-first-run-win:
powershell -ExecutionPolicy Bypass -File scripts\test-first-run.ps1
test-restore-win:
powershell -ExecutionPolicy Bypass -File scripts\test-restore.ps1
# Remove and reinstall the plugin from local checkout, then /reload-plugins in Claude.
reinstall-plugin-win:
powershell -ExecutionPolicy Bypass -File scripts\reinstall-plugin.ps1