Sha256: 73e6d92f87eadb0bba46e3122f6ed133ae4db0f406fdf5955297caaf0c883308

Contents?: true

Size: 443 Bytes

Versions: 20

Compression:

Stored size: 443 Bytes

Contents

#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

for dbname in fresh_connection_test_master fresh_connection_test_replica1 fresh_connection_test_replica2 ; do
  if ! psql $dbname -c '\q' 2>/dev/null ; then
    if [[ -n "`psql -l | grep \"$dbname\"`" ]]; then
      echo "Dropping database $dbname .."
      dropdb $dbname
    fi
    echo "Creating database $dbname .."
    createdb $dbname
  fi
done

set -vx
bundle exec appraisal rake test

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fresh_connection-3.0.3 bin/test
fresh_connection-3.0.2 bin/test
fresh_connection-3.0.2.rc1 bin/test
fresh_connection-3.0.1 bin/test
fresh_connection-3.0.1.rc2 bin/test
fresh_connection-3.0.1.rc1 bin/test
fresh_connection-3.0.0 bin/test
fresh_connection-3.0.0.rc2 bin/test
fresh_connection-3.0.0.rc1 bin/test
fresh_connection-2.4.4 bin/test
fresh_connection-2.4.3 bin/test
fresh_connection-2.4.2 bin/test
fresh_connection-2.4.1 bin/test
fresh_connection-2.4.0 bin/test
fresh_connection-2.4.0.rc4 bin/test
fresh_connection-2.4.0.rc3 bin/test
fresh_connection-2.4.0.rc1 bin/test
fresh_connection-2.3.2 bin/test
fresh_connection-2.3.1 bin/test
fresh_connection-2.3.0 bin/test