]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add a Vagrantfile for testing on FreeBSD
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Tue, 12 Jun 2018 21:51:35 +0000 (23:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 14 Aug 2018 19:39:15 +0000 (21:39 +0200)
misc/freebsd/README [new file with mode: 0644]
misc/freebsd/Vagrantfile [new file with mode: 0644]

diff --git a/misc/freebsd/README b/misc/freebsd/README
new file mode 100644 (file)
index 0000000..2faebe6
--- /dev/null
@@ -0,0 +1,12 @@
+How to use Vagrant to test ccache on FreeBSD
+============================================
+
+vagrant up
+vagrant ssh
+
+vagrant@freebsd:~ % git clone https://github.com/ccache/ccache.git
+vagrant@freebsd:~ % cd ccache
+vagrant@freebsd:~/ccache % ./autogen.sh
+vagrant@freebsd:~/ccache % ./configure
+vagrant@freebsd:~/ccache % gmake
+vagrant@freebsd:~/ccache % gmake test
diff --git a/misc/freebsd/Vagrantfile b/misc/freebsd/Vagrantfile
new file mode 100644 (file)
index 0000000..da126cd
--- /dev/null
@@ -0,0 +1,23 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant.configure("2") do |config|
+  config.vm.guest = :freebsd
+  config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true
+  config.vm.box = "freebsd/FreeBSD-12.0-CURRENT"
+  config.ssh.shell = "sh"
+  config.vm.base_mac = "080027D14C66"
+
+  config.vm.provider :virtualbox do |vb|
+    vb.customize ["modifyvm", :id, "--memory", "1024"]
+    vb.customize ["modifyvm", :id, "--cpus", "1"]
+    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
+    vb.customize ["modifyvm", :id, "--audio", "none"]
+    vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
+    vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
+  end
+
+  config.vm.provision "shell", inline: <<-SHELL
+    pkg install -y git gmake bash autoconf
+  SHELL
+end