From 7297baaf7ee00e20f71420b72d793bca5d922f2e Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Thu, 18 Feb 2021 17:30:28 +0100 Subject: [PATCH 1/2] Only check migrations for custom apps --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 018830a3..e00ccbb4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,9 @@ variables: # psql password authentication PGPASSWORD: $POSTGRES_PASSWORD + # apps to check migrations for + MIGRATION_APPS: "bda bds clubs events gestioncof gestioncof.cms kfet kfet.auth kfet.cms kfet.open petitscours shared" + .test_template: before_script: - mkdir -p vendor/{pip,apt} @@ -82,7 +85,7 @@ migration_checks: - cp gestioasso/settings/secret_example.py gestioasso/settings/secret.py - pip install --upgrade -r requirements-devel.txt - python --version - script: python manage.py makemigrations --dry-run --check + script: python manage.py makemigrations --dry-run --check $MIGRATION_APPS services: # this should not be necessary… - postgres:11.7 From d7367476bcc00c7a316883f809a889035dddeab2 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Thu, 18 Feb 2021 17:41:52 +0100 Subject: [PATCH 2/2] Fix app names --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e00ccbb4..b0c1f4c6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,7 @@ variables: PGPASSWORD: $POSTGRES_PASSWORD # apps to check migrations for - MIGRATION_APPS: "bda bds clubs events gestioncof gestioncof.cms kfet kfet.auth kfet.cms kfet.open petitscours shared" + MIGRATION_APPS: "bda bds cofcms clubs events gestioncof kfet kfetauth kfetcms open petitscours shared" .test_template: before_script: