blob: 52ea81b6160c93b1e9e4803e0257d57322a15f84 [file] [log] [blame]
Artem Titov739351d2018-05-11 12:21:36 +02001#!/usr/bin/env bash
2
3# Exit on any error.
4set -e
5
6test_version() {
7 version=$1
8 if [ "$version" == "jruby-1.7" ] ; then
9 # No conformance tests yet -- JRuby is too broken to run them.
10 bash --login -c \
11 "rvm install $version && rvm use $version && rvm get head && \
12 which ruby && \
13 git clean -f && \
14 gem install bundler && bundle && \
15 rake test"
16 else
17 bash --login -c \
18 "rvm install $version && rvm use $version && \
19 which ruby && \
20 git clean -f && \
21 gem install bundler && bundle && \
22 rake test &&
23 cd ../conformance && make test_ruby &&
24 cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh"
25 fi
26}
27
28test_version $1