]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Vagrant file |
2 | Vagrant.configure("2") do |config| | |
3 | ||
4 | config.vm.provider "virtualbox" do |v| | |
5 | v.memory = 4096 | |
6 | v.cpus = 2 | |
7 | end | |
8 | ||
9 | config.vm.define "ubuntu14" do |box| | |
10 | box.vm.box = "ubuntu/trusty64" | |
11 | end | |
12 | ||
13 | config.vm.define "centos65" do |box| | |
14 | box.vm.box = "chef/centos-6.5" | |
15 | end | |
16 | ||
17 | config.vm.define "FreeBSD10" do |box| | |
18 | box.vm.guest = :freebsd | |
19 | box.vm.box = "robin/freebsd-10" | |
20 | # FreeBSD does not support 'mount_virtualbox_shared_folder', use NFS | |
21 | box.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root" | |
22 | box.vm.network "private_network", ip: "10.0.1.10" | |
23 | ||
24 | # build everything after creating VM, skip using --no-provision | |
25 | box.vm.provision "shell", inline: <<-SCRIPT | |
26 | pkg install -y gmake clang35 | |
27 | export CXX=/usr/local/bin/clang++35 | |
28 | cd /vagrant | |
29 | gmake clean | |
30 | gmake all OPT=-g | |
31 | SCRIPT | |
32 | end | |
33 | ||
34 | end |