-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 693 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 693 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
32
33
34
35
36
37
-include .env
export
test:
@pytest
format:
@ruff format .
postgres-up:
@docker compose -f docker-compose_postgres.yml up -d db
postgres-migrate:
@yoyo apply -d $(GRPC_MOCK_DATABASE_URL)
postgres-down:
@docker compose -f docker-compose_postgres.yml down -t 1
sqlite-down:
@docker compose -f docker-compose_sqlite.yml down
dev.run:
@python -m grpc_mock
run:
@hypercorn grpc_mock.server:app -b $(GRPC_MOCK_HOST):$(GRPC_MOCK_PORT)
run-postgres: postgres-up
@sleep 3
-@$(MAKE) postgres-migrate
-@docker compose -f docker-compose_postgres.yml up --build api
-@$(MAKE) postgres-down
run-sqlite:
-@docker compose -f docker-compose_sqlite.yml up --build
-@$(MAKE) sqlite-down