forked from decarvalhoe/umbra-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1.8 KB
/
Copy pathMakefile
File metadata and controls
53 lines (38 loc) · 1.8 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
.PHONY: dev stop clean test lint format build help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
dev: ## Start all services in development mode
docker compose up --build -d
stop: ## Stop all services
docker compose down
clean: ## Stop all services and remove volumes
docker compose down -v --remove-orphans
test: test-ai-director test-game-logic test-payment ## Run all tests
@echo "All tests passed!"
test-ai-director: ## Run AI Director tests
cd services/ai-director && pip install -r requirements.txt -q && pytest tests/ -v
test-game-logic: ## Run Game Logic tests
cd services/game-logic && pip install -r requirements.txt -q && pytest tests/ -v
test-payment: ## Run Payment tests
cd services/payment && pip install -r requirements.txt -q && pytest tests/ -v
test-nakama: ## Type-check Nakama runtime
cd nakama/data && npm ci && npx tsc --noEmit
test-client: ## Build client
cd client && npm ci && npm run build
lint: ## Lint all Python services
cd services/ai-director && ruff check app/ tests/
cd services/game-logic && ruff check app/ tests/
cd services/payment && ruff check app/ tests/
format: ## Format all Python services
cd services/ai-director && black app/ tests/
cd services/game-logic && black app/ tests/
cd services/payment && black app/ tests/
build: ## Build all Docker images
docker compose build
logs: ## Show logs from all services
docker compose logs -f
health: ## Check health of all services
@echo "Nakama:" && curl -sf http://localhost:7350/healthcheck && echo
@echo "AI Director:" && curl -sf http://localhost:8001/health && echo
@echo "Game Logic:" && curl -sf http://localhost:8002/health && echo
@echo "Payment:" && curl -sf http://localhost:8003/health && echo