2016-07-31 20:44:31 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Exit on any error.
|
|
|
|
set -e
|
|
|
|
|
|
|
|
test_version() {
|
|
|
|
version=$1
|
2018-05-05 00:30:16 +00:00
|
|
|
if [ "$version" == "jruby-1.7" ] ; then
|
2016-07-31 20:44:31 +00:00
|
|
|
# No conformance tests yet -- JRuby is too broken to run them.
|
|
|
|
bash --login -c \
|
2018-05-05 00:30:16 +00:00
|
|
|
"rvm install $version && rvm use $version && rvm get head && \
|
2016-07-31 20:44:31 +00:00
|
|
|
which ruby && \
|
2018-05-05 00:30:16 +00:00
|
|
|
git clean -f && \
|
2016-07-31 20:44:31 +00:00
|
|
|
gem install bundler && bundle && \
|
|
|
|
rake test"
|
|
|
|
else
|
|
|
|
bash --login -c \
|
|
|
|
"rvm install $version && rvm use $version && \
|
|
|
|
which ruby && \
|
2018-05-05 00:30:16 +00:00
|
|
|
git clean -f && \
|
2016-07-31 20:44:31 +00:00
|
|
|
gem install bundler && bundle && \
|
|
|
|
rake test &&
|
2018-05-05 00:30:16 +00:00
|
|
|
cd ../conformance && make test_ruby &&
|
|
|
|
cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh"
|
2016-07-31 20:44:31 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
test_version $1
|