Sha256: c5d0bd92cc75ae09bd97a1ea79b42d59ef4b3aec48eaa0af61226ad98d2f1df6

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 Bytes

Contents

#!/bin/sh

#  inspired by http://pivotallabs.com/users/jdean/blog/articles/1728-testing-your-gem-against-multiple-rubies-and-rails-versions-with-rvm
#  on OS X, run using this command: sh test_all_rubies.sh

# tells the shell to exit immediately if any of the commands in the script fail
set -e

function run {
  gem list --local bundler | grep bundler || gem install bundler --no-ri --no-rdoc
  echo 'Running tests...'
  rake test
}

rvm use ruby-1.8.6
run

rvm use ruby-1.8.7
run

# rvm use ree-1.8.7
# run

rvm use ruby-1.9.1
run

rvm use ruby-1.9.2
run

rvm use ruby-1.9.3
run

echo 'Success!'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
statsmix-0.2.2 test_all_rubies.sh