forked from DGNum/gestioCOF
Use cof.settings.local for migration checks
This commit is contained in:
parent
3a34ab4462
commit
eadfd1d3cd
1 changed files with 5 additions and 14 deletions
|
@ -72,12 +72,15 @@ linters:
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
||||||
# Check whether there are some missing migrations.
|
# Check whether there are some missing migrations.
|
||||||
.migration_checks_template:
|
migration_checks:
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
DJANGO_SETTINGS_MODULE: "cof.settings.local"
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p vendor/{pip,apt}
|
- mkdir -p vendor/{pip,apt}
|
||||||
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client libldap2-dev libsasl2-dev
|
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client libldap2-dev libsasl2-dev
|
||||||
- cp cof/settings/secret_example.py cof/settings/secret.py
|
- cp cof/settings/secret_example.py cof/settings/secret.py
|
||||||
- pip install --upgrade -r requirements-prod.txt
|
- pip install --upgrade -r requirements-devel.txt
|
||||||
- python --version
|
- python --version
|
||||||
script: python manage.py makemigrations --dry-run --check
|
script: python manage.py makemigrations --dry-run --check
|
||||||
services:
|
services:
|
||||||
|
@ -87,15 +90,3 @@ linters:
|
||||||
key: migration_checks
|
key: migration_checks
|
||||||
paths:
|
paths:
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
||||||
cof_migration_checks:
|
|
||||||
stage: test
|
|
||||||
extends: .migration_checks_template
|
|
||||||
variables:
|
|
||||||
DJANGO_SETTINGS_MODULE: "cof.settings.cof_prod"
|
|
||||||
|
|
||||||
bds_migration_checks:
|
|
||||||
stage: test
|
|
||||||
extends: .migration_checks_template
|
|
||||||
variables:
|
|
||||||
DJANGO_SETTINGS_MODULE: "cof.settings.bds_prod"
|
|
||||||
|
|
Loading…
Reference in a new issue