| RUBY_CONFORMANCE=test_ruby |
| if [ "$version" == "jruby-9.2.11.1" ] ; then |
| "rvm install $version && rvm use $version && rvm get head && \ |
| gem install bundler && bundle && \ |
| cd ../conformance && make test_jruby && |
| cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh" |
| elif [ "$version" == "ruby-2.6.0" -o "$version" == "ruby-2.7.0" -o "$version" == "ruby-3.0.0" ] ; then |
| "rvm install $version && rvm use $version && \ |
| gem install bundler -v 1.17.3 && bundle && \ |
| cd ../conformance && make ${RUBY_CONFORMANCE} && |
| cd ../ruby/compatibility_tests/v3.0.0 && |
| cp -R ../../lib lib && ./test.sh" |
| # Recent versions of OSX have deprecated OpenSSL, so we have to explicitly |
| # provide a path to the OpenSSL directory installed via Homebrew. |
| "rvm install $version --with-openssl-dir=`brew --prefix openssl` && \ |
| gem install bundler -v 1.17.3 && bundle && \ |
| cd ../conformance && make ${RUBY_CONFORMANCE} && |
| cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh" |