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