-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (19 loc) · 625 Bytes
/
Makefile
File metadata and controls
22 lines (19 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Pin the dependencies
lock:
poetry lock
poetry export -f requirements.txt --without-hashes --output requirements.txt
poetry export -f requirements.txt --without-hashes --with dev --output requirements-dev.txt
# Run the docker
run:
docker-compose up -d --build
# Run the docker
stop:
docker-compose down
# Run tests for the library
test:
docker-compose up -d --build
docker cp requirements-dev.txt api_backend_1:/app/requirements-dev.txt
docker-compose exec -T backend pip install -r requirements-dev.txt
docker cp tests api_backend_1:/app/tests
docker-compose exec -T backend pytest tests/
docker-compose down