2015-05-07 00:24:58 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-05-13 21:58:48 +00:00
|
|
|
|
|
|
|
# Exit on any error.
|
|
|
|
set -e
|
|
|
|
|
|
|
|
test_version() {
|
|
|
|
version=$1
|
2016-07-22 01:04:56 +00:00
|
|
|
if [ "$version" == "jruby-1.7" ] ; then
|
2015-07-17 23:20:01 +00:00
|
|
|
# No conformance tests yet -- JRuby is too broken to run them.
|
|
|
|
bash --login -c \
|
2016-09-21 17:56:53 +00:00
|
|
|
"rvm install $version && rvm use $version && rvm get head && \
|
2015-07-17 23:20:01 +00:00
|
|
|
which ruby && \
|
|
|
|
gem install bundler && bundle && \
|
|
|
|
rake test"
|
|
|
|
else
|
|
|
|
bash --login -c \
|
|
|
|
"rvm install $version && rvm use $version && \
|
|
|
|
which ruby && \
|
|
|
|
gem install bundler && bundle && \
|
2016-01-12 05:10:46 +00:00
|
|
|
rake test &&
|
|
|
|
cd ../conformance && make test_ruby"
|
2015-07-17 23:20:01 +00:00
|
|
|
fi
|
2015-05-13 21:58:48 +00:00
|
|
|
}
|
|
|
|
|
2015-05-13 23:43:48 +00:00
|
|
|
test_version $1
|