From d6de2718707bce40f4b2d9a21888c65c3e27f422 Mon Sep 17 00:00:00 2001 From: shekharrajak Date: Mon, 7 Jan 2019 21:46:42 +0530 Subject: [PATCH] travis Ruby version and bundler error: bundler requires Ruby version >= 2.3.0 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 14de476..6817220 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,11 @@ after_script: - bundle exec rake coveralls:push install: - - gem install bundler + - if [ $TRAVIS_RUBY_VERSION == '2.2' || $TRAVIS_RUBY_VERSION == '2.1' || $TRAVIS_RUBY_VERSION == '2.0']; then + echo $TRAVIS_RUBY_VERSION + gem install bundler -v '~> 1.6' + else + gem install bundler + fi - gem install rainbow -v '2.2.1' - bundle install