pin bundler to 2.2.11

It seems the latest 2.2.12 requires rake>13.0 installed and that
requirement doesn't work well in current our CI jobs.
Let's pin it to the previous version until we resolve the issue.

This change also removes the pin for the very old Ruby version.

Closes-Bug: #1917457
Change-Id: I62f35dce338ae186a217dd1d0a141d3a737243a0
(cherry picked from commit 4d2d86e0df)
This commit is contained in:
Takashi Kajinami
2021-03-02 21:36:48 +09:00
committed by Alfredo Moralejo
parent 1a16a30b54
commit d266e3df36
4 changed files with 4 additions and 12 deletions

View File

@@ -37,9 +37,7 @@
cmd: |
ruby <<EOF
cmd = 'gem install bundler --no-document --verbose --no-user-install'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3'
end
cmd += ' -v 2.2.11'
system(cmd)
EOF
environment:

View File

@@ -23,9 +23,7 @@
if [ -f Gemfile ]; then
ruby <<EOF
cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3'
end
cmd += ' -v 2.2.11'
system(cmd)
EOF
$GEM_BIN_DIR/bundle install --without system_tests --retry 3

View File

@@ -8,9 +8,7 @@
export GEM_BIN_DIR=$GEM_HOME/bin
ruby <<EOF
cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3'
end
cmd += ' -v 2.2.11'
system(cmd)
EOF
$GEM_BIN_DIR/bundle install --retry 3

View File

@@ -20,9 +20,7 @@
export GEM_BIN_DIR=$GEM_HOME/bin
ruby <<EOF
cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3'
end
cmd += ' -v 2.2.11'
system(cmd)
EOF
$GEM_BIN_DIR/bundle install --retry 3