-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.48 KB
/
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
39
test-create-db:
@echo "Creating Hame database..."
curl -XPOST "http://localhost:8081/2015-03-31/functions/function/invocations" -d '{"action" : "create_db"}'
test-migrate-db:
@echo "Migrating Hame database..."
curl -XPOST "http://localhost:8081/2015-03-31/functions/function/invocations" -d '{"action" : "migrate_db"}'
test-koodistot:
@echo "Loading Koodistot data..."
curl -XPOST "http://localhost:8082/2015-03-31/functions/function/invocations" -d '{}'
curl -XPOST "http://localhost:8085/2015-03-31/functions/function/invocations" -d '{}'
test-ryhti-validate:
@echo "Validating database contents with Ryhti API..."
curl -XPOST "http://localhost:8083/2015-03-31/functions/function/invocations" -d '{"action": "validate_plans"}'
pytest:
docker compose -f docker-compose.dev.yml down -v
docker compose -f docker-compose.dev.yml build db_manager koodistot_loader ryhti_client mml_loader
cd database; pytest
pytest-fail:
docker-compose -f docker-compose.dev.yml down -v
docker-compose -f docker-compose.dev.yml build db_manager koodistot_loader ryhti_client
cd database; pytest --maxfail=1
rebuild:
docker compose -f docker-compose.dev.yml down -v
docker compose -f docker-compose.dev.yml build db_manager koodistot_loader ryhti_client mml_loader
docker compose -f docker-compose.dev.yml up -d
build-lambda:
docker compose -f docker-compose.dev.yml build db_manager koodistot_loader ryhti_client mml_loader
revision:
cd database; \
alembic revision --autogenerate -m "$(name)"; \
cd ..