TP_JO2024/Makefile
2024-03-27 17:19:37 +01:00

36 lines
No EOL
599 B
Makefile

.PHONY: test
setup:
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
cp -r ./sample/ ./data/
test:
. .venv/bin/activate
pytest -v ./athlete/tests
pytest -v ./medaille/tests
pytest -v ./discipline/tests
clear:
rm -rf ./data
compose:
docker compose build
docker compose up -d
clear_before_rendreTP:
rm -rf ./.venv
rm -rf ./data
rm -rf __pycache__
rm -rf athlete/__pycache__
rm -rf medaille/__pycache__
rm -rf discipline/__pycache__
doAll:
make clear_before_rendreTP
make setup
make test
make compose
docker compose down
make clear_before_rendreTP