Sha256: ff58d9644cb271bf238e47bcce702cf0bb30d65ed25eb29f5a1e3d46ed13a1c3

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

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/v6.0"
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 "===================================================================="
echo "Run test for folder:"
echo $rails_dir
echo "===================================================================="

# 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

14 entries across 14 versions & 1 rubygems

Version Path
sorbet-rails-0.7.34 spec/bin/run_spec.sh
sorbet-rails-0.7.33 spec/bin/run_spec.sh
sorbet-rails-0.7.32 spec/bin/run_spec.sh
sorbet-rails-0.7.31 spec/bin/run_spec.sh
sorbet-rails-0.7.27 spec/bin/run_spec.sh
sorbet-rails-0.7.26 spec/bin/run_spec.sh
sorbet-rails-0.7.25 spec/bin/run_spec.sh
sorbet-rails-0.7.24 spec/bin/run_spec.sh
sorbet-rails-0.7.23 spec/bin/run_spec.sh
sorbet-rails-0.7.22 spec/bin/run_spec.sh
sorbet-rails-0.7.20 spec/bin/run_spec.sh
sorbet-rails-0.7.19 spec/bin/run_spec.sh
sorbet-rails-0.7.18 spec/bin/run_spec.sh
sorbet-rails-0.7.5 spec/bin/run_spec.sh