From eba1b24534bf2c3bd839ab3cd4df9d5337b98cdc Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Mon, 25 Jul 2016 14:28:19 +0100 Subject: [PATCH 1/2] Update development vagrant to ruby 2.2.3 --- Vagrantfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 1e20fca33..2b913d670 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -50,8 +50,8 @@ su -l -c 'curl -sL https://get.rvm.io | bash -s stable' vagrant #usermod -a -G rvm vagrant # Install some Rubies -su -l -c 'rvm install 2.1.1' vagrant -su -l -c 'rvm --default use 2.1.1' vagrant +su -l -c 'rvm install 2.2.3' vagrant +su -l -c 'rvm --default use 2.2.3' vagrant # Output the Ruby version (for sanity) su -l -c 'ruby --version' vagrant From ec30f7ee07e7fb94d6c4b507fdd44adae003e340 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Mon, 25 Jul 2016 17:39:30 +0100 Subject: [PATCH 2/2] Ensure the dev vagrant VM is ready to run tests --- Vagrantfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 2b913d670..2bc61a5a8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -59,6 +59,10 @@ su -l -c 'ruby --version' vagrant # Install 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 # if it's not already there. grep -q 'cd /vagrant' /home/vagrant/.bash_profile || echo 'cd /vagrant' >> /home/vagrant/.bash_profile