Files
zulip/tools/test-migrations
Tim Abbott 9e6b9dacf6 test-migrations: Fix missing exit status on error.
Previously this test was correctly detecting missing migrations, but
not causing the build to fail.
2016-06-15 09:26:04 -07:00

12 lines
327 B
Bash
Executable File

#!/bin/bash
set -e
echo 'Testing whether migrations are consistent with models'
if ./manage.py makemigrations -e --dry-run; then
echo
echo 'ERROR: Migrations are not consistent with models! Fix with `./manage.py makemigrations`.'
echo
exit 1
else
echo "Success! Migrations are consistent with models."
fi