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