Admin club counters.
[wolnelektury.git] / Makefile
1 .PHONY: deploy test
2
3
4 deploy: src/wolnelektury/localsettings.py
5         pip install -r requirements/requirements.txt
6         src/manage.py migrate --noinput
7         src/manage.py update_counters
8         src/manage.py collectstatic --noinput
9
10
11 .ONESHELL:
12 test:
13         cd src
14         coverage run --branch --source='.' ./manage.py test; true
15         coverage html -d ../htmlcov.new
16         rm -rf ../htmlcov
17         mv ../htmlcov.new ../htmlcov
18         coverage report
19         rm .coverage