4 @echo
'make test run tests and show coverage report'
5 @echo
'make clean clean up files'
7 test: envs
/test/MEDIA_ROOT
8 # assume defined media root directory, empty before running tests
9 rm -rf
$(shell cat envs
/test/MEDIA_ROOT
)
10 mkdir
-p
$(shell cat envs
/test/MEDIA_ROOT
)
11 envdir envs
/dev
/ pytest
--cov
=mygpo
/ --cov-branch
12 coverage report
--show-missing
15 envdir envs
/dev
/ python manage.py makemessages \
16 --ignore
=doc
/* --ignore
=envs
/* --ignore
=media
/* --ignore
=venv
/* \
17 --ignore
=res
/* --ignore
=tools
/* --ignore
=mygpo
/*/migrations
/* \
21 envdir envs
/dev
/ python manage.py shell_plus
--notebook
27 sudo apt-get
install libpq-dev libjpeg-dev zlib1g-dev libwebp-dev \
28 build-essential python3-dev virtualenv libffi-dev
31 .PHONY
: all help
test clean unittest coverage install-deps