Sha256: a593e9713ea5b6b35c147e08048a9f19433f592191a15b1fceb7a21baa204df6

Contents?: true

Size: 795 Bytes

Versions: 10

Compression:

Stored size: 795 Bytes

Contents

#!/usr/bin/env bash

echo "Setting the environment to use ${DB} database"

BUNDLE_CONFIG=.bundle/config
mkdir -p $(dirname $BUNDLE_CONFIG)
cat <<EOF > $BUNDLE_CONFIG
---
BUNDLE_WITHOUT: pry:mysql:postgresql:concurrent_ruby_ext
EOF

case $DB in
    mysql)
        sed -i 's/:mysql//'g $BUNDLE_CONFIG
        mysql -e 'create database travis_ci_test;'
    ;;
    postgresql)
        sed -i 's/:postgresql//'g $BUNDLE_CONFIG
        psql -c 'create database travis_ci_test;' -U postgres
    ;;
    sqlite3)
        # the tests are by default using sqlite3: do nothing
    ;;
    *)
    echo "Unsupported database ${DB}"
    exit 1
    ;;
esac

if [ "$CONCURRENT_RUBY_EXT" = "true" ]; then
  echo "Enabling concurrent-ruby-ext"
  sed -i 's/:concurrent_ruby_ext//'g $BUNDLE_CONFIG
fi

bundle install

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dynflow-0.8.9 test/prepare_travis_env.sh
dynflow-0.8.8 test/prepare_travis_env.sh
dynflow-0.8.7 test/prepare_travis_env.sh
dynflow-0.8.6 test/prepare_travis_env.sh
dynflow-0.8.5 test/prepare_travis_env.sh
dynflow-0.8.4 test/prepare_travis_env.sh
dynflow-0.8.3 test/prepare_travis_env.sh
dynflow-0.8.2 test/prepare_travis_env.sh
dynflow-0.8.1 test/prepare_travis_env.sh
dynflow-0.8.0 test/prepare_travis_env.sh