X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/15dec706694c3afc006713be0fabb4973a6c2946..864d45abe5ec985836baf52de168943d25a03be6:/Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..304f5db7 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.PHONY: deploy test + + +deploy: src/redakcja/localsettings.py + pip install -r requirements/requirements.txt + src/manage.py migrate --noinput + src/manage.py collectstatic --noinput + + +.ONESHELL: +test: + cd src + coverage run --branch --source='.' ./manage.py test --settings=redakcja.settings.test; true + coverage html -d ../htmlcov.new + rm -rf ../htmlcov + mv ../htmlcov.new ../htmlcov + coverage report + rm .coverage