X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/acfb1b67784f5ea456de243ae9d69c269c92b79b..24e6d9ab498222fbca619faf9bc8d17aace46137:/Makefile 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 . +