Pin bundler to 1.17.3

bundler 2.0.0 is released which needs ruby >= 2.3.0 and rubygems >= 3.0
but we are behind, so let's pin bundler to 1.17.3.

Closes-Bug: #1810401
Change-Id: Ia1190e36443e8ae24219d62771a9fd5ad46e8b25
(cherry picked from commit 43ec9b9232)
This commit is contained in:
Emilien Macchi 2019-01-03 12:19:25 +01:00
parent 52cc5ab957
commit 07d465ac71
6 changed files with 8 additions and 6 deletions

View File

@ -57,7 +57,7 @@ fi
print_header 'Install Bundler'
mkdir -p .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
gem install bundler --no-rdoc --no-ri --verbose
gem install bundler --version 1.17.3 --no-rdoc --no-ri --verbose
set -e
./run_tests.sh

View File

@ -43,6 +43,8 @@
- name: Install bundler
gem:
name: bundler
# Required against https://bugs.launchpad.net/puppet-openstack-integration/+bug/1810401
version: 1.17.3
user_install: false
environment:
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"

View File

@ -45,7 +45,7 @@
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
if [ -f Gemfile ]; then
gem install bundler --no-rdoc --no-ri --verbose
gem install bundler --version 1.17.3 --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --without system_tests --retry 3
$GEM_HOME/bin/bundle exec rspec spec/acceptance
else

View File

@ -19,7 +19,7 @@
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
if [ -f Gemfile ]; then
gem install bundler --no-rdoc --no-ri --verbose
gem install --version 1.17.3 bundler --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --without system_tests
$GEM_HOME/bin/bundle exec rake lint 2>&1
else

View File

@ -5,7 +5,7 @@
export PUPPET_GEM_VERSION='~> {{ puppet }}'
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
gem install bundler --no-rdoc --no-ri --verbose
gem install bundler --version 1.17.3 --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --retry 3
# FUTURE_PARSER=yes is only supported by Puppet 3.x
if [ "{{ puppet }}" -lt "4" ]; then

View File

@ -7,7 +7,7 @@
fi
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
gem install bundler --no-rdoc --no-ri --verbose
gem install bundler --version 1.17.3 --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --retry 3
$GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation'
chdir: '{{ ansible_user_dir }}/workspace'