Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
@ -14,7 +14,7 @@ before_script:
- cp sapl/.env_test sapl/.env
- psql -c "CREATE USER sapl WITH PASSWORD 'sapl'" -U postgres;
- psql -c "CREATE DATABASE sapl OWNER sapl;" -U postgres
- ./check_migrations.sh
- ./scripts/django/check_migrations.sh
script:
- ./manage.py migrate
@ -4,5 +4,5 @@
if git diff --cached --name-status | grep -q '^M.*models\.py$'; then
# se a checagem de migrations falhar impedimos o commit
set -e
./check_migrations.sh
./scripts/django/check_migrations.sh
fi