test_env 350 B

1234567891011121314
  1. #!/bin/bash
  2. set -e
  3. [ -e '/app/.env' ] && { echo 'Existing .env detected. Please rename it temporarily before running the test container.' >&2; exit 1; }
  4. /scripts/setup_env
  5. source /app/.env
  6. export RAILS_ENV=test
  7. unset no_proxy
  8. bundle install --with test development --path vendor/bundle -j 4
  9. bundle exec rake db:create db:migrate
  10. bundle exec "$@"