aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/travis-test.sh
blob: 4a2536a5b85f86c5c1a680108bc5719588a62bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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