summaryrefslogtreecommitdiff
path: root/Makefile.example
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-30 19:05:19 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-30 19:05:19 +0100
commit8a14a18b2c7e2a54899548092d59800805781aed (patch)
treead024d9cb9ae533f59b2b480b10496c080c841b4 /Makefile.example
parent99e7697ea68dfd1829d8f3f22a8887a3346fa1bc (diff)
downloadIshtar-8a14a18b2c7e2a54899548092d59800805781aed.tar.bz2
Ishtar-8a14a18b2c7e2a54899548092d59800805781aed.zip
Makefile: add coverage support
Diffstat (limited to 'Makefile.example')
-rw-r--r--Makefile.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.example b/Makefile.example
index 59f82d7af..d251155ed 100644
--- a/Makefile.example
+++ b/Makefile.example
@@ -47,6 +47,11 @@ update: clean syncdb compilemessages collectstatic
test: clean
cd $(project); $(PYTHON) manage.py test $(apps)
+coverage: clean
+ cd $(project); coverage run --source="ishtar_common,archaeological_operations,\
+ archaeological_context_records,archaeological_files,archaeological_finds,archaeological_warehouse,\
+ archaeological_files_pdl" ./manage.py test $(apps) && coverage report
+
test_gitlab: clean
# test migrations
cd $(project); $(PYTHON) ./manage.py syncdb --noinput