diff options
author | Olle Jonsson <olle.jonsson@gmail.com> | 2019-01-20 16:10:43 +0100 |
---|---|---|
committer | Olle Jonsson <olle.jonsson@gmail.com> | 2019-01-20 16:10:43 +0100 |
commit | 832fed75230c26db14bee6ab43ffdd231f2e8df4 (patch) | |
tree | 49ec4b091ddbdde119afa779c20f6241d94e23c9 /.travis.yml | |
parent | 1e5437c45957d9b933bf144ae9d0df69001325e0 (diff) | |
download | slop-832fed75230c26db14bee6ab43ffdd231f2e8df4.tar.gz |
CI: On Rubies < 2.3 install Bundler < 2
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 6ad81cc..b1226a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,13 @@ cache: bundler before_install: - - gem install bundler + - | + export RVM_CURRENT=`rvm current|cut -c6-8` + if [ "${RVM_CURRENT}" = "2.0" ] || \ + [ "${RVM_CURRENT}" = "2.1" ] || \ + [ "${RVM_CURRENT}" = "2.2" ]; then + gem install bundler -v '< 2' + fi + rvm: - 2.0.0 - 2.1 |