Commit 11a6248b authored by okhin's avatar okhin 🚴

Let's sync db on migrate, in case some apps (such as django_und_vote) don't...

Let's sync db on migrate, in case some apps (such as django_und_vote) don't have migrations, but needs tables to be created
parent 1eb4dc18
Pipeline #2504 passed with stages
in 3 minutes and 13 seconds
......@@ -22,7 +22,7 @@ unit tests:
- pip install -r requirements-tests.txt
- echo "DEBUG = True" > ./project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py migrate
- ./manage.py migrate --run-syncdb
- pytest apps/ --cov=apps/
tags: [preprod]
......@@ -57,7 +57,7 @@ deploy preprod:
- echo "DEBUG = True" > ${BASE_PATH}/project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
- echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py
- ${BASE_PATH}/manage.py migrate
- ${BASE_PATH}/manage.py migrate --run-syncdb
- touch ${BASE_PATH}/ready
only:
- rp2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment