X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/76fc5b2671d4c445e57236a5b1d54e56fe49764a..676180ac8010d13370620a4889fb07ae6122a335:/Makefile?ds=inline diff --git a/Makefile b/Makefile index b700ee6..9c0f292 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,20 @@ .PHONY: deploy +UID != id -u +GID != id -g + deploy: src/cas/localsettings.py pip install -r requirements.txt src/manage.py migrate --noinput src/manage.py collectstatic --noinput + +test: + rm -r htmlcov & + docker-compose run --rm dev sh -c '\ + coverage run --branch --source='.' --data-file ../.coverage ./manage.py test; \ + coverage html --data-file ../.coverage -d htmlcov; \ + coverage report --data-file ../.coverage; \ + chown -R $(UID):$(GID) htmlcov' + mv -f src/htmlcov . +