TP_JO2024/Makefile
2024-03-27 15:31:11 +01:00

35 lines
No EOL
574 B
Makefile

.PHONY: test
test:
. .venv/bin/activate
pytest -v ./athlete/tests
pytest -v ./medaille/tests
pytest -v ./discipline/tests
clear:
rm -rf ./data
compose:
docker compose up
setup:
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
cp -r ./sample/ ./data/
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