Sha256: 216c3b307e2e74f205337533e62de59e077f3c5909f17c9d07b0c71ab13fc039
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 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 SBR_DEBUG_MODE=true bundle exec rake fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sorbet-rails-0.7.4 | spec/bin/run_spec.sh |
sorbet-rails-0.7.3 | spec/bin/run_spec.sh |