blob: 75db7d931f7f4627f4f6890c356cda4ee7a0f80b [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001#!/usr/bin/env bash
2
3# Exit on any error.
4set -e
5
6test_version() {
7 version=$1
8 if [ "$version" == "jruby" ] ; then
9 # No conformance tests yet -- JRuby is too broken to run them.
10 bash --login -c \
11 "rvm install $version && rvm use $version && \
12 which ruby && \
13 gem install bundler && bundle && \
14 rake test"
15 else
16 bash --login -c \
17 "rvm install $version && rvm use $version && \
18 which ruby && \
19 gem install bundler && bundle && \
20 rake test &&
21 cd ../conformance && make test_ruby"
22 fi
23}
24
25test_version $1