travis-test.sh 578 Bytes
Newer Older
Tamir Duberstein's avatar
Tamir Duberstein committed
1
#!/usr/bin/env bash
2 3 4 5 6 7

# Exit on any error.
set -e

test_version() {
  version=$1
8 9 10 11 12 13 14 15 16 17 18 19
  if [ "$version" == "jruby" ] ; then
    # No conformance tests yet -- JRuby is too broken to run them.
    bash --login -c \
      "rvm install $version && rvm use $version && \
       which ruby && \
       gem install bundler && bundle && \
       rake test"
  else
    bash --login -c \
      "rvm install $version && rvm use $version && \
       which ruby && \
       gem install bundler && bundle && \
20 21
       rake test &&
       cd ../conformance && make test_ruby"
22
  fi
23 24
}

25
test_version $1