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