Sha256: 27276d3741517677fe19e0b38e6ff896e415a9298123978dde48255a3fadb3db
Contents?: true
Size: 888 Bytes
Versions: 15
Compression:
Stored size: 888 Bytes
Contents
#!/bin/bash # A simple script to run spec for a single version of Rails # need to use bash so that $wd returns the location of the script wd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" current_dir=$(pwd) if [[ -z $RAILS_VERSION ]]; then rails_dir="$wd/../support/v5.2" else rails_dir="$wd/../support/v$RAILS_VERSION" fi # clean up & install gems rm $wd/../../Gemfile.lock 2>/dev/null # clean up Gemfile.lock first bundle install echo $rails_dir # update gems in rails_dir cd $rails_dir bundle install # move back to current dir to run test cd $current_dir if [[ -z $RAILS_VERSION ]]; then echo "---- Run DEFAULT ----" bundle update && DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake else echo "---- Run $RAILS_VERSION ----" RAILS_VERSION=$RAILS_VERSION bundle update RAILS_VERSION=$RAILS_VERSION DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake fi
Version data entries
15 entries across 15 versions & 1 rubygems