Merge pull request #7643 from carlosefr/update-dev-vagrant

Update development vagrant VM
This commit is contained in:
Seth Vargo 2016-07-26 09:24:51 -07:00 committed by GitHub
commit 272fc52c67
1 changed files with 6 additions and 2 deletions

8
Vagrantfile vendored
View File

@ -50,8 +50,8 @@ su -l -c 'curl -sL https://get.rvm.io | bash -s stable' vagrant
#usermod -a -G rvm vagrant #usermod -a -G rvm vagrant
# Install some Rubies # Install some Rubies
su -l -c 'rvm install 2.1.1' vagrant su -l -c 'rvm install 2.2.3' vagrant
su -l -c 'rvm --default use 2.1.1' vagrant su -l -c 'rvm --default use 2.2.3' vagrant
# Output the Ruby version (for sanity) # Output the Ruby version (for sanity)
su -l -c 'ruby --version' vagrant su -l -c 'ruby --version' vagrant
@ -59,6 +59,10 @@ su -l -c 'ruby --version' vagrant
# Install Git # Install Git
apt-get install -y git apt-get install -y git
# Prepare to run unit tests
su -l vagrant -c 'gem install bundler -v 1.12.5'
su -l vagrant -c 'cd /vagrant; bundle install'
# Automatically move into the shared folder, but only add the command # Automatically move into the shared folder, but only add the command
# if it's not already there. # if it's not already there.
grep -q 'cd /vagrant' /home/vagrant/.bash_profile || echo 'cd /vagrant' >> /home/vagrant/.bash_profile grep -q 'cd /vagrant' /home/vagrant/.bash_profile || echo 'cd /vagrant' >> /home/vagrant/.bash_profile