Sha256: cc87b571d526b9a5423ec1d56cef798f9de2ce7b90a7e7c7cf48dd1266d37af4

Contents?: true

Size: 559 Bytes

Versions: 29

Compression:

Stored size: 559 Bytes

Contents

#!/usr/bin/env bash
set -e

# Just checking for a healthy container isn't enough, apparently. If
# we don't wait here, sometimes the database is inaccessible.
for i in {1..10}; do
  psql -h pg -U postgres postgres -c 'select 1' >/dev/null 2>&1 && break
  printf ' .'
  sleep 1
done
echo
out="$(psql -h pg -U postgres postgres -c 'select 1' 2>&1)"
if [[ $? != 0 ]]; then
   echo "Postgres didn't start in time:"
   echo "$out"
   exit 1
fi

export RAILS_ENV=test
./bin/rake db:{create,migrate,setup}

./bin/rails runner 'User.first_or_create(login: "admin")'

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
appmap-0.39.0 spec/fixtures/rails4_users_app/create_app
appmap-0.38.1 spec/fixtures/rails4_users_app/create_app
appmap-0.37.2 spec/fixtures/rails4_users_app/create_app
appmap-0.37.0 spec/fixtures/rails4_users_app/create_app
appmap-0.36.0 spec/fixtures/rails4_users_app/create_app
appmap-0.35.2 spec/fixtures/rails4_users_app/create_app
appmap-0.35.1 spec/fixtures/rails4_users_app/create_app
appmap-0.35.0 spec/fixtures/rails4_users_app/create_app
appmap-0.34.5 spec/fixtures/rails4_users_app/create_app
appmap-0.34.4 spec/fixtures/rails4_users_app/create_app
appmap-0.34.2 spec/fixtures/rails4_users_app/create_app
appmap-0.34.1 spec/fixtures/rails4_users_app/create_app
appmap-0.34.0 spec/fixtures/rails4_users_app/create_app
appmap-0.33.0 spec/fixtures/rails4_users_app/create_app
appmap-0.32.0 spec/fixtures/rails4_users_app/create_app
appmap-0.31.0 spec/fixtures/rails4_users_app/create_app
appmap-0.28.1 spec/fixtures/rails4_users_app/create_app
appmap-0.28.0 spec/fixtures/rails4_users_app/create_app
appmap-0.27.0 spec/fixtures/rails4_users_app/create_app
appmap-0.26.1 spec/fixtures/rails4_users_app/create_app