Sha256: f0c8f0a6cf5e60a7237e8575b06d919cafb568e91395c9672a46423477c8d2cd

Contents?: true

Size: 997 Bytes

Versions: 1

Compression:

Stored size: 997 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 )"
rm $wd/../../Gemfile.lock 2>/dev/null # clean up Gemfile.lock first

case $RAILS_VERSION in
  4.2)
    echo 'run spec with Rails 4.2'
    RAILS_VERSION=4.2 bundle _1.17.3_ update && RAILS_VERSION=4.2 bundle _1.17.3_ exec rake
    ;;
  5.0)
    echo 'run spec with Rails 5.0'
    RAILS_VERSION=5.0 bundle update && RAILS_VERSION=5.0 bundle exec rake
    ;;
  5.1)
    echo 'run spec with Rails 5.1'
    RAILS_VERSION=5.1 bundle update && RAILS_VERSION=5.1 bundle exec rake
    ;;
  5.2)
    echo 'run spec with Rails 5.2'
    RAILS_VERSION=5.2 bundle update && RAILS_VERSION=5.2 bundle exec rake
    ;;
  6.0)
    echo 'run spec with Rails 6.0'
    RAILS_VERSION=6.0 bundle update && RAILS_VERSION=6.0 bundle exec rake
    ;;
  *)
    echo 'run default'
    bundle update && bundle exec rake
    ;;
esac

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sorbet-rails-0.3.0 spec/bin/run_spec.sh