#!/usr/bin/env bash # Exit on any error. set -e proc test_version { setglobal version = $1 if test $version == "jruby-1.7" { # No conformance tests yet -- JRuby is too broken to run them. bash --login -c \ "rvm install $version && rvm use $version && rvm get head && \ which ruby && \ git clean -f && \ gem install bundler && bundle && \ rake test" } else { bash --login -c \ "rvm install $version && rvm use $version && \ which ruby && \ git clean -f && \ gem install bundler && bundle && \ rake test && cd ../conformance && make test_ruby" } } test_version $1