ci: don't start if checks fail (#7674)

* ci: run checks when migrating

* ci: don't start if checks fail
This commit is contained in:
Jennifer Richards 2024-07-11 12:30:19 -03:00 committed by GitHub
parent ec1238d4fd
commit 8f14dabcf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View file

@ -1,14 +1,14 @@
#!/bin/bash
#!/bin/bash -e
#
# Run a celery worker
#
echo "Running Datatracker checks..."
./ietf/manage.py check
if ! ietf/manage.py migrate --skip-checks --check ; then
if ! ietf/manage.py migrate --check ; then
echo "Unapplied migrations found, waiting to start..."
sleep 5
while ! ietf/manage.py migrate --skip-checks --check ; do
while ! ietf/manage.py migrate --check ; do
echo "... still waiting for migrations..."
sleep 5
done

View file

@ -1,12 +1,12 @@
#!/bin/bash
#!/bin/bash -e
echo "Running Datatracker checks..."
./ietf/manage.py check
if ! ietf/manage.py migrate --skip-checks --check ; then
if ! ietf/manage.py migrate --check ; then
echo "Unapplied migrations found, waiting to start..."
sleep 5
while ! ietf/manage.py migrate --skip-checks --check ; do
while ! ietf/manage.py migrate --check ; do
echo "... still waiting for migrations..."
sleep 5
done

View file

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/bash -e
echo "Running Datatracker migrations..."
./ietf/manage.py migrate --skip-checks --settings=settings_local
./ietf/manage.py migrate --settings=settings_local
echo "Done!"