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 UID=$(UID) GID=$(GID) $(TEST_COMPOSE) run --rm --build test sh -c '\
32 python -Wall -m coverage run --branch --source=. \
33 ./manage.py test --settings=redakcja.settings.test_full $(ARGS); s=$$?; \
34 coverage report --skip-covered; coverage html -d /app/htmlcov; exit $$s'; \
35 status=$$?; $(TEST_COMPOSE) down; exit $$status
40 UID=$(UID) GID=$(GID) docker compose exec web bash