blob: 75db7d931f7f4627f4f6890c356cda4ee7a0f80b [file] [log] [blame]
#!/usr/bin/env bash
# Exit on any error.
set -e
test_version() {
version=$1
if [ "$version" == "jruby" ] ; then
# No conformance tests yet -- JRuby is too broken to run them.
bash --login -c \
"rvm install $version && rvm use $version && \
which ruby && \
gem install bundler && bundle && \
rake test"
else
bash --login -c \
"rvm install $version && rvm use $version && \
which ruby && \
gem install bundler && bundle && \
rake test &&
cd ../conformance && make test_ruby"
fi
}
test_version $1