Commit 11a6248b authored by Okhin's avatar Okhin
Browse files

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: ...@@ -22,7 +22,7 @@ unit tests:
- pip install -r requirements-tests.txt - pip install -r requirements-tests.txt
- echo "DEBUG = True" > ./project/settings/env.py - echo "DEBUG = True" > ./project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./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/ - pytest apps/ --cov=apps/
tags: [preprod] tags: [preprod]
...@@ -57,7 +57,7 @@ deploy preprod: ...@@ -57,7 +57,7 @@ deploy preprod:
- echo "DEBUG = True" > ${BASE_PATH}/project/settings/env.py - echo "DEBUG = True" > ${BASE_PATH}/project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${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 - 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 - touch ${BASE_PATH}/ready
only: only:
- rp2 - rp2
......
Supports Markdown
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