Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 82492e5

Browse files
committed
Use the latest ruby in vagrant boxes
1 parent d7c013d commit 82492e5

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ namespace :build do
6363
sh "vagrant ssh -c 'cd ~/libv8 && bundle install --path vendor/bundle'"
6464
sh "vagrant ssh -c 'cd ~/libv8 && bundle exec rake binary'"
6565
sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
66+
sh "vagrant destroy"
6667
end
6768
end
6869
end

release/x86-linux/Vagrantfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ Vagrant.configure(2) do |config|
7373
# documentation for more information about their specific syntax and use.
7474
config.vm.provision "shell", inline: <<-SHELL
7575
sudo apt-get update
76-
sudo apt-get install -y build-essential git python ruby ruby-dev
77-
gem install bundler
76+
sudo apt-get install -y software-properties-common
77+
sudo apt-add-repository ppa:brightbox/ruby-ng
78+
sudo apt-get update
79+
sudo apt-get dist-upgrade -y
80+
sudo apt-get install -y build-essential git ruby-switch ruby2.3 ruby2.3-dev
81+
sudo ruby-switch --set ruby2.3
82+
sudo gem install bundler
7883
SHELL
7984
end

release/x86_64-linux/Vagrantfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ Vagrant.configure(2) do |config|
7373
# documentation for more information about their specific syntax and use.
7474
config.vm.provision "shell", inline: <<-SHELL
7575
sudo apt-get update
76-
sudo apt-get install -y build-essential git python ruby ruby-dev
77-
gem install bundler
76+
sudo apt-get install -y software-properties-common
77+
sudo apt-add-repository ppa:brightbox/ruby-ng
78+
sudo apt-get update
79+
sudo apt-get dist-upgrade -y
80+
sudo apt-get install -y build-essential git ruby-switch ruby2.3 ruby2.3-dev
81+
sudo ruby-switch --set ruby2.3
82+
sudo gem install bundler
7883
SHELL
7984
end

0 commit comments

Comments
 (0)