Merge branch 'kerl/ci_missing_migrations' into 'master'

La CI regarde s'il manque des migrations

Closes #214

See merge request klub-dev-ens/gestioCOF!373
This commit is contained in:
Ludovic Stephan 2019-10-16 19:55:29 +02:00
commit 8ccaf8beaf
2 changed files with 80 additions and 0 deletions

View file

@ -59,3 +59,21 @@ linters:
key: linters key: linters
paths: paths:
- vendor/ - vendor/
# Check whether there are some missing migrations.
migration_checks:
stage: test
before_script:
- mkdir -p vendor/{pip,apt}
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client
- cp cof/settings/secret_example.py cof/settings/secret.py
- pip install --upgrade -r requirements.txt
- python --version
script: python manage.py makemigrations --dry-run --check
services:
# this should not be necessary…
- postgres:9.6
cache:
key: migration_checks
paths:
- vendor/

View file

@ -0,0 +1,62 @@
# Generated by Django 2.2.6 on 2019-10-06 19:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("kfet", "0068_on_delete_account")]
operations = [
migrations.AlterField(
model_name="account",
name="promo",
field=models.IntegerField(
blank=True,
choices=[
(1980, 1980),
(1981, 1981),
(1982, 1982),
(1983, 1983),
(1984, 1984),
(1985, 1985),
(1986, 1986),
(1987, 1987),
(1988, 1988),
(1989, 1989),
(1990, 1990),
(1991, 1991),
(1992, 1992),
(1993, 1993),
(1994, 1994),
(1995, 1995),
(1996, 1996),
(1997, 1997),
(1998, 1998),
(1999, 1999),
(2000, 2000),
(2001, 2001),
(2002, 2002),
(2003, 2003),
(2004, 2004),
(2005, 2005),
(2006, 2006),
(2007, 2007),
(2008, 2008),
(2009, 2009),
(2010, 2010),
(2011, 2011),
(2012, 2012),
(2013, 2013),
(2014, 2014),
(2015, 2015),
(2016, 2016),
(2017, 2017),
(2018, 2018),
(2019, 2019),
],
default=2019,
null=True,
),
)
]