Ensure the dev vagrant VM is ready to run tests

This commit is contained in:
Carlos Rodrigues 2016-07-25 17:39:30 +01:00
parent eba1b24534
commit ec30f7ee07
1 changed files with 4 additions and 0 deletions

4
Vagrantfile vendored
View File

@ -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