protobuf/ruby/travis-test.sh
Josh Haberman 95ee8fb88e Exclude JRuby from conformance tests for now.
Change-Id: Id008ebac5159f773e1bde8b85acb2626cbd16de8
2015-07-17 16:20:01 -07:00

27 lines
589 B
Bash
Executable File

#!/usr/bin/env bash
# Exit on any error.
set -e
test_version() {
version=$1
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 && \
rake test && \
cd ../conformance && \
make test_ruby"
fi
}
test_version $1