TP_JO2024/Makefile

37 lines
681 B
Makefile
Raw Permalink Normal View History

2024-03-27 15:20:10 +01:00
.PHONY: test
2024-03-27 17:19:37 +01:00
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
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:
2024-03-27 17:19:37 +01:00
docker compose build
docker compose up -d
2024-03-27 15:31:11 +01:00
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
2024-03-27 17:29:54 +01:00
@read -p "Press enter to continue when you are ready to stop the docker compose"
2024-03-27 15:31:11 +01:00
docker compose down
make clear_before_rendreTP