You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_migrations.sh 308B

123456789101112
  1. #!/usr/bin/env bash
  2. #
  3. # Test migrations run correctly
  4. # Fail if any command fails
  5. # http://stackoverflow.com/questions/90418/exit-shell-script-based-on-process-exit-code
  6. set -e
  7. set -o pipefail
  8. # Postgres
  9. echo "Running migrations against Postgres"
  10. ./manage.py migrate --noinput --settings=settings_postgres