ci: fix makemigrations echo during pr checks + build

This commit is contained in:
Nicolas Giard 2022-05-03 18:31:50 -04:00 committed by GitHub
parent 5598762608
commit 3606dbef38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -130,7 +130,8 @@ jobs:
./ietf/manage.py check
echo "Validating migrations..."
if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then
echo -e "\nModel changes without migrations found." ; exit 1
echo "Model changes without migrations found."
exit 1
fi
echo "Running tests..."
./ietf/manage.py test --settings=settings_sqlitetest

View file

@ -42,7 +42,8 @@ jobs:
./ietf/manage.py check
echo "Validating migrations..."
if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then
echo -e "\nModel changes without migrations found." ; exit 1
echo "Model changes without migrations found."
exit 1
fi
echo "Running tests..."
./ietf/manage.py test --settings=settings_sqlitetest