Remove some unused stuff.
[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         rm -rf ../htmlcov
16         coverage html -d ../htmlcov.new
17         rm -rf ../htmlcov
18         mv ../htmlcov.new ../htmlcov
19         coverage report
20         rm .coverage