diff options
Diffstat (limited to 'ruby/travis-test.sh')
-rwxr-xr-x | ruby/travis-test.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ruby/travis-test.sh b/ruby/travis-test.sh new file mode 100755 index 00000000..a240dd65 --- /dev/null +++ b/ruby/travis-test.sh @@ -0,0 +1,15 @@ +#!/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" +} + +test_version $1 |