Sha256: 165fda261285be661c36026dfff7f1c1054fa7e488cbf86a778b7cdc0be9a64f

Contents?: true

Size: 895 Bytes

Versions: 5

Compression:

Stored size: 895 Bytes

Contents

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

set -vx

if [ -v DATABASE_URL ]; then
  echo "[specified config]"
  bundle exec rake test
else
  echo "[mysql]"
  DATABASE_URL="mysql2://root@localhost/fresh_connection_test_master" \
    DATABASE_REPLICA1_URL="mysql2://root@localhost/fresh_connection_test_replica1" \
    DATABASE_REPLICA2_URL="mysql2://root@localhost/fresh_connection_test_replica2" \
    DATABASE_FAKE_REPLICA_URL="mysql2://root@localhost/fresh_connection_test_master" \
    bundle exec rake test

  echo "[postgresql]"
  DATABASE_URL="postgresql://localhost/fresh_connection_test_master" \
    DATABASE_REPLICA1_URL="postgresql://localhost/fresh_connection_test_replica1" \
    DATABASE_REPLICA2_URL="postgresql://localhost/fresh_connection_test_replica2" \
    DATABASE_FAKE_REPLICA_URL="postgresql://localhost/fresh_connection_test_master" \
    bundle exec rake test
fi

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fresh_connection-3.1.3 bin/test
fresh_connection-3.1.2 bin/test
fresh_connection-3.1.1 bin/test
fresh_connection-3.1.1.rc1 bin/test
fresh_connection-3.1.0 bin/test