Sha256: ce1dcdef6782268a1451c265a75bf677801bcef6226c7562e3b69d2b8b454006

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

#!/bin/bash
set -ex

CURRENT=$(cd $(dirname $0);pwd)
DOCKER_MYSQL_PORT=$(docker port gizzard_mysql57 3306 2>/dev/null | cut -f 2 -d ':')
DOCKER_MYSQL_PORT=${DOCKER_MYSQL_PORT:-3306}

export DB_HOST=${DB_HOST:-127.0.0.1}
export DB_PORT=${DB_PORT:-${DOCKER_MYSQL_PORT}}
export DB_NAME=${DB_NAME:-gizzard_test}
export DB_USER=${DB_USER:-root}
export DB_PASSWORD=${DB_PASSWORD:-5y8m2jzTamDS6M85ateGrA6pihhyCm}

mysql \
  -u ${DB_USER} \
  -h ${DB_HOST} \
  -p${DB_PASSWORD} \
  --port ${DB_PORT} \
  -e "CREATE DATABASE IF NOT EXISTS ${DB_NAME}"

bundle exec ridgepole \
  -c ${CURRENT}/../spec/dummy/config/database.yml \
  --apply \
  -f ${CURRENT}/../spec/dummy/db/Schemafile \
  -E test

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gizzard-0.8.0 scripts/setup.sh
gizzard-0.7.1 scripts/setup.sh
gizzard-0.7.0 scripts/setup.sh
gizzard-0.6.1 scripts/setup.sh