1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Use the latest ruby in vagrant boxes

This commit is contained in:
Petko Bordjukov 2016-06-15 13:57:59 +03:00
parent d7c013d88e
commit 82492e5cf8
3 changed files with 15 additions and 4 deletions

View file

@ -63,6 +63,7 @@ namespace :build do
sh "vagrant ssh -c 'cd ~/libv8 && bundle install --path vendor/bundle'"
sh "vagrant ssh -c 'cd ~/libv8 && bundle exec rake binary'"
sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
sh "vagrant destroy"
end
end
end

View file

@ -73,7 +73,12 @@ Vagrant.configure(2) do |config|
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y build-essential git python ruby ruby-dev
gem install bundler
sudo apt-get install -y software-properties-common
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install -y build-essential git ruby-switch ruby2.3 ruby2.3-dev
sudo ruby-switch --set ruby2.3
sudo gem install bundler
SHELL
end

View file

@ -73,7 +73,12 @@ Vagrant.configure(2) do |config|
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y build-essential git python ruby ruby-dev
gem install bundler
sudo apt-get install -y software-properties-common
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install -y build-essential git ruby-switch ruby2.3 ruby2.3-dev
sudo ruby-switch --set ruby2.3
sudo gem install bundler
SHELL
end