TP_JO2024/Makefile
2024-03-27 17:29:54 +01:00

37 lines
No EOL
681 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
@read -p "Press enter to continue when you are ready to stop the docker compose"
docker compose down
make clear_before_rendreTP