Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 22 lines (17 sloc) 0.532 kB
6e95be3 @flavorjones Refactoring and speeding up prerelease. Added 3.0.10 and 3.1.0.
flavorjones authored
1 #!/usr/bin/env bash
21485dd @zilkey make it easier to run specs against multiple ruby/ar versions, add Ad…
authored
2
3 # Load RVM into a shell session *as a function*
4 if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
a2b7dc8 @flavorjones Using Appraisal to test against multiple versions of rails.
flavorjones authored
5 source "$HOME/.rvm/scripts/rvm"
21485dd @zilkey make it easier to run specs against multiple ruby/ar versions, add Ad…
authored
6 elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
a2b7dc8 @flavorjones Using Appraisal to test against multiple versions of rails.
flavorjones authored
7 source "/usr/local/rvm/scripts/rvm"
21485dd @zilkey make it easier to run specs against multiple ruby/ar versions, add Ad…
authored
8 else
a2b7dc8 @flavorjones Using Appraisal to test against multiple versions of rails.
flavorjones authored
9 echo "ERROR: An RVM installation was not found.\n"
21485dd @zilkey make it easier to run specs against multiple ruby/ar versions, add Ad…
authored
10 fi
11
a2b7dc8 @flavorjones Using Appraisal to test against multiple versions of rails.
flavorjones authored
12 set -o errexit
153c58e @zilkey fix test suite for Rails 3.1, add belongs_to_active_hash method, prep…
authored
13
a2b7dc8 @flavorjones Using Appraisal to test against multiple versions of rails.
flavorjones authored
14 for v in ruby-1.8.7 ree-1.8.7 ruby-1.9.2 ruby-1.9.3 ; do
15 rvm use ${v}@active_hash --create
16 bundle install --local || bundle install
17 rake appraisal:install
18 rake appraisal spec
19 done
21485dd @zilkey make it easier to run specs against multiple ruby/ar versions, add Ad…
authored
20
6e95be3 @flavorjones Refactoring and speeding up prerelease. Added 3.0.10 and 3.1.0.
flavorjones authored
21 echo 'Success!'
Something went wrong with that request. Please try again.