0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-19 00:25:18 +00:00

add v8-5.2 box

This commit is contained in:
Stefan Siegl 2017-01-22 14:18:02 +01:00
parent cce742a614
commit 6971b84c0a

64
Vagrantfile vendored
View File

@ -1,37 +1,14 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# vi: set ft=ruby ts=2 sts=2 sw=2 et :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "trusty64"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
config.vm.box = "ubuntu/trusty64"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
@ -39,31 +16,28 @@ Vagrant.configure("2") do |config|
# argument is a set of non-required options.
config.vm.synced_folder ".", "/data/v8js"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
config.vm.provision "shell", inline: <<-SHELL
gpg --keyserver keys.gnupg.net --recv 7F438280EF8D349F
gpg --armor --export 7F438280EF8D349F | apt-key add -
apt-get update
apt-get install -y software-properties-common
apt-get install -y software-properties-common gdb tmux git tig curl apache2-utils
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:pinepain/libv8-5.7
apt-get update
apt-get install -y php7.0-dev \
libv8-5.7-dbg libv8-5.7-dev \
gdb tmux git tig curl apache2-utils
SHELL
config.vm.define "default" do |i|
i.vm.provision "shell", inline: <<-SHELL
add-apt-repository ppa:pinepain/libv8-5.7
apt-get update
apt-get install -y php7.0-dev libv8-5.7-dbg libv8-5.7-dev
SHELL
end
config.vm.define "v8-5.2" do |i|
i.vm.provision "shell", inline: <<-SHELL
add-apt-repository ppa:pinepain/libv8-5.2
apt-get update
apt-get install -y php7.0-dev libv8-5.2-dbg libv8-5.2-dev
SHELL
end
end