Fix blog api url to the one used by apps.
[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 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