blob: 9ec7eb22c03c73c096070d2c575028266b2ae618 [file] [log] [blame]
Tamir Dubersteine54c1452015-05-06 20:24:58 -04001#!/usr/bin/env bash
Chris Fallineb375512015-05-13 14:58:48 -07002
3# Exit on any error.
4set -e
5
6test_version() {
7 version=$1
Josh Haberman95ee8fb2015-07-17 16:20:01 -07008 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 && \
22 make test_ruby"
23 fi
Chris Fallineb375512015-05-13 14:58:48 -070024}
25
Chris Fallin20e94b22015-05-13 16:43:48 -070026test_version $1