-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (38 loc) · 1011 Bytes
/
Makefile
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
setup: setup-api setup-worker setup-docs setup-tests
setup-api:
@cd api; \
echo "[setup-api]: Verifying go modules..."; \
go mod verify; \
echo "[setup-api]: Running linter..."; \
make lint; \
echo "[setup-api]: Running unit tests..."; \
make test
setup-worker:
@cd worker; \
echo "[setup-worker]: Installing requirements"; \
make install; \
make test-install; \
echo "[setup-worker]: Running linter..."; \
make lint; \
echo "[setup-worker]: Running unit tests..."; \
make test
setup-docs:
@cd docs; \
echo "[setup-docs]: Installing dependencies"; \
npm install
setup-tests:
@cd tests; \
echo "[setup-tests]: Installing dependencies"; \
make setup
setup-models:
@echo "Setting up models..."; \
python3 scripts/setup_models.py
start: setup-models
@echo "Starting smriti services..."; \
docker compose up -d
stop:
@echo "Stopping smriti services..."; \
docker compose down
gen-test-data: start
@echo "Generating test data"; \
python3 scripts/generate_test_data.py