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

Fix binary releases through Vagrant

This commit is contained in:
Petko Bordjukov 2016-05-13 02:28:08 +03:00
parent 57b58f138f
commit 09b57cca7c
4 changed files with 11 additions and 8 deletions

View file

@ -58,9 +58,10 @@ namespace :build do
Dir.chdir(arch_dir) do
ENV['RUBYLIB'] = nil # https://github.com/mitchellh/vagrant/issues/6158
sh "vagrant up"
sh "vagrant ssh -c 'git clone /libv8/.git ~/libv8'"
sh "vagrant ssh -c 'rm -rf ~/libv8'"
sh "vagrant ssh -c 'git clone /libv8/.git ~/libv8 --recursive'"
sh "vagrant ssh -c 'cd ~/libv8 && bundle install --path vendor/bundle'"
sh "vagrant ssh -c 'cd ~/libv8 && bundle exec rake checkout binary'"
sh "vagrant ssh -c 'cd ~/libv8 && bundle exec rake binary'"
sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
end
end

View file

@ -54,6 +54,12 @@ Vagrant.configure(2) do |config|
#
# View the documentation for the provider you are using for more
# information on available options.
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
end
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
@ -61,11 +67,6 @@ Vagrant.configure(2) do |config|
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
end
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the

View file

@ -81,6 +81,6 @@ Vagrant.configure(2) do |config|
# sudo apt-get install -y apache2
# SHELL
config.vm.provision "shell", inline: <<-SHELL
pkg install -y gmake ruby rubygem-bundler git-subversion python2
pkg install -y bash gmake ruby rubygem-bundler git-subversion python2
SHELL
end

View file

@ -55,6 +55,7 @@ Vagrant.configure(2) do |config|
# View the documentation for the provider you are using for more
# information on available options.
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]