summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Jonsson <olle.jonsson@gmail.com>2019-01-20 16:10:43 +0100
committerOlle Jonsson <olle.jonsson@gmail.com>2019-01-20 16:10:43 +0100
commit832fed75230c26db14bee6ab43ffdd231f2e8df4 (patch)
tree49ec4b091ddbdde119afa779c20f6241d94e23c9
parent1e5437c45957d9b933bf144ae9d0df69001325e0 (diff)
downloadslop-832fed75230c26db14bee6ab43ffdd231f2e8df4.tar.gz
CI: On Rubies < 2.3 install Bundler < 2
-rw-r--r--.travis.yml9
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