2024-03-27 15:20:10 +01:00
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
test:
|
2024-03-27 15:31:11 +01:00
|
|
|
. .venv/bin/activate
|
2024-03-27 15:20:10 +01:00
|
|
|
pytest -v ./athlete/tests
|
|
|
|
pytest -v ./medaille/tests
|
|
|
|
pytest -v ./discipline/tests
|
|
|
|
|
2024-03-27 15:31:11 +01:00
|
|
|
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/
|
|
|
|
|
2024-03-27 15:20:10 +01:00
|
|
|
clear_before_rendreTP:
|
2024-03-27 15:31:11 +01:00
|
|
|
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
|