9 deploy: src/redakcja/localsettings.py
10 pip install -r requirements/requirements.txt
11 src/manage.py migrate --noinput
12 src/manage.py collectstatic --noinput
15 TEST_COMPOSE := docker compose -f docker-compose.test.yml
20 UID=$(UID) GID=$(GID) $(TEST_COMPOSE) run --rm --build test sh -c '\
21 python -Wall -m coverage run --branch --source=. \
22 ./manage.py test --settings=redakcja.settings.test $(ARGS); s=$$?; \
23 coverage report --skip-covered; coverage html -d /app/htmlcov; exit $$s'; \
24 status=$$?; $(TEST_COMPOSE) down; exit $$status
31 coverage run --branch --source='.' ./manage.py test --settings=redakcja.settings.test_full; true
32 coverage html -d ../htmlcov.new
34 mv ../htmlcov.new ../htmlcov
40 UID=$(UID) GID=$(GID) docker compose exec web bash