protobuf/ruby/travis-test.sh

18 lines
300 B
Bash
Raw Normal View History

2015-05-07 00:24:58 +00:00
#!/usr/bin/env bash
# Exit on any error.
set -e
test_version() {
version=$1
bash --login -c \
"rvm install $version && rvm use $version && \
which ruby && \
gem install bundler && bundle && \
rake test && \
cd ../conformance && \
make test_ruby"
}
test_version $1