Removed explicit bundler install since there is no dependency in gemspec

This commit is contained in:
Ricardo Aielo 2019-08-08 15:53:03 -07:00
parent 068e348826
commit 546cd90cea
1 changed files with 1 additions and 3 deletions

4
Vagrantfile vendored
View File

@ -29,7 +29,6 @@ $shell = <<-'CONTENTS'
export DEBIAN_FRONTEND=noninteractive
MARKER_FILE="/usr/local/etc/vagrant_provision_marker"
RUBY_VER_REQ=$(awk '$1 == "s.required_ruby_version" { print $4 }' /vagrant/vagrant.gemspec | tr -d '"')
BUNDLER_VER_REQ=$(awk '/s.add_dependency "bundler"/ { print $4 }' /vagrant/vagrant.gemspec | tr -d '"')
# Only provision once
if [ -f "${MARKER_FILE}" ]; then
@ -66,8 +65,7 @@ apt-get install -qy git
# Upgrade Rubygems
su -l -c "rvm ${RUBY_VER} do gem update --system" vagrant
# Install bundler and prepare to run unit tests
su -l -c "gem install bundler -v ${BUNDLER_VER_REQ}" vagrant
# Prepare to run unit tests
su -l -c 'cd /vagrant; bundle install' vagrant
# Automatically move into the shared folder, but only add the command