update
[cas.git] / Makefile
1 .PHONY: deploy
2
3 UID != id -u
4 GID != id -g
5
6 deploy: src/cas/localsettings.py
7         pip install -r requirements.txt
8         src/manage.py migrate --noinput
9         src/manage.py collectstatic --noinput
10
11
12 test:
13         rm -r htmlcov &
14         docker-compose run --rm dev sh -c '\
15                 coverage run --branch --source='.' --data-file ../.coverage ./manage.py test; \
16                 coverage html --data-file ../.coverage -d htmlcov; \
17                 coverage report --data-file ../.coverage; \
18                 chown -R $(UID):$(GID) htmlcov'
19         mv -f src/htmlcov .
20