From b33a9e754b4ab8a69630af151737b7535355b4da Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Tue, 26 Mar 2024 12:19:56 +0200 Subject: [PATCH] Print missing migrations in CI https://stackoverflow.com/a/77259833/51801 --- docker/init-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/init-test.sh b/docker/init-test.sh index fe8432cf..0438a83f 100755 --- a/docker/init-test.sh +++ b/docker/init-test.sh @@ -1,8 +1,11 @@ #!/bin/sh -e +set -x + python /app/manage.py migrate --no-input python /app/manage.py createcachetable python /app/manage.py collectstatic --no-input pytest --cov --cov-report=xml if [ -d /coverage ]; then cp .coverage coverage.xml /coverage/; fi -python /app/manage.py makemigrations --check --dry-run --no-input +python /app/manage.py makemigrations --dry-run --no-input +python /app/manage.py makemigrations --check --no-input