From 0a59b2594a08882da78faafef9286e3479aa0028 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Aug 2016 20:40:25 +0200 Subject: CI: fix migration order --- Makefile.example | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.example b/Makefile.example index 759c5f833..a6a4d523d 100644 --- a/Makefile.example +++ b/Makefile.example @@ -47,7 +47,13 @@ update: clean syncdb compilemessages collectstatic test: clean cd $(project); $(PYTHON) manage.py test $(apps) -test_gitlab: syncdb +test_gitlab: clean + # test migrations + cd $(project); $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null + # only necessary on master + cd $(project); $(PYTHON) ./manage.py migrate ishtar_common 2> /dev/null > /dev/null + cd $(project); $(PYTHON) ./manage.py migrate archaeological_operations 2> /dev/null > /dev/null + cd $(project); $(PYTHON) ./manage.py migrate 2> /dev/null > /dev/null cd $(project); $(PYTHON) manage.py test $(apps) pep8: -- cgit v1.2.3