-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 854 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 854 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
30
31
.PHONY: up setup test down clean help
EXAMPLES := quickstart async-client live-config error-handling
## up: Start the decree server (postgres + redis + migrations + service)
up:
cd ../../decree && docker compose up -d --wait service
## setup: Seed example schema, tenant, and config (writes .tenant-id)
setup: up
python setup.py
## test: Run all examples as smoke tests (run 'make setup' first)
test:
@for dir in $(EXAMPLES); do \
echo "=== $$dir ==="; \
(cd $$dir && python -m pytest test_*.py -v) || exit 1; \
done
## down: Stop the server and remove volumes
down:
cd ../../decree && docker compose down -v
## clean: Remove generated files
clean:
rm -f .tenant-id
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
## help: Show this help
help:
@grep -E '^## ' $(MAKEFILE_LIST) | sed 's/## //' | column -t -s ':'