forked from DGNum/gestioCOF
Merge branch 'Aufinal/migration_checks' into 'master'
CI: ne lance `migration_checks` que sur nos propres apps See merge request klub-dev-ens/gestioCOF!488
This commit is contained in:
commit
2350109a33
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,9 @@ variables:
|
||||||
# psql password authentication
|
# psql password authentication
|
||||||
PGPASSWORD: $POSTGRES_PASSWORD
|
PGPASSWORD: $POSTGRES_PASSWORD
|
||||||
|
|
||||||
|
# apps to check migrations for
|
||||||
|
MIGRATION_APPS: "bda bds cofcms clubs events gestioncof kfet kfetauth kfetcms open petitscours shared"
|
||||||
|
|
||||||
.test_template:
|
.test_template:
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p vendor/{pip,apt}
|
- mkdir -p vendor/{pip,apt}
|
||||||
|
@ -82,7 +85,7 @@ migration_checks:
|
||||||
- cp gestioasso/settings/secret_example.py gestioasso/settings/secret.py
|
- cp gestioasso/settings/secret_example.py gestioasso/settings/secret.py
|
||||||
- pip install --upgrade -r requirements-devel.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 $MIGRATION_APPS
|
||||||
services:
|
services:
|
||||||
# this should not be necessary…
|
# this should not be necessary…
|
||||||
- postgres:11.7
|
- postgres:11.7
|
||||||
|
|
Loading…
Reference in a new issue