Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 32 lines (25 sloc) 0.924 kb
cfecf34 @flavorjones Adding a script, `prerelease`, to test against various versions of Ru…
flavorjones authored
1 #!/usr/bin/env bash
2
3 # Load RVM into a shell session *as a function*
4 if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
5 # First try to load from a user install
6 source "$HOME/.rvm/scripts/rvm"
7 elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
8 # Then try to load from a root install
9 source "/usr/local/rvm/scripts/rvm"
10 else
11 printf "ERROR: An RVM installation was not found.\n"
12 fi
13
14 set -e
15
16 function run {
17 gem list --local bundler | grep bundler || gem install bundler --no-ri --no-rdoc
18
19 for v in 2.3.11 3.0.10 3.1.0 "" ; do
20 ACTS_AS_FU_ACTIVERECORD_VERSION=${v} bundle --quiet update --local activerecord || ACTS_AS_FU_ACTIVERECORD_VERSION=${v} bundle --quiet update activerecord
21 echo "Running $(ruby -v) against $(basename $(bundle show activerecord)) ..."
22 bundle exec spec spec
23 done
24 }
25
26 for v in ruby-1.8.7 ree-1.8.7 ruby-1.9.2 ; do
27 rvm use ${v}@acts_as_fu --create
28 run
29 done
30
31 echo 'Success!'
Something went wrong with that request. Please try again.