From bea88937f4564e282063fb44aeac485012cfae87 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 12 Nov 2023 20:43:24 +0200 Subject: CI: run Vagrant tests. --- vagrant/ubuntu2004/Vagrantfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 vagrant/ubuntu2004/Vagrantfile (limited to 'vagrant/ubuntu2004') diff --git a/vagrant/ubuntu2004/Vagrantfile b/vagrant/ubuntu2004/Vagrantfile new file mode 100644 index 0000000..c37e5be --- /dev/null +++ b/vagrant/ubuntu2004/Vagrantfile @@ -0,0 +1,28 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.box = "roboxes/ubuntu2004" + + config.vm.synced_folder ".", "/vagrant", disabled: true + config.vm.synced_folder "../../", "/bindfs", + type: "rsync", + rsync__auto: false, + rsync__exclude: ["vagrant"], + rsync__args: ["-av", "--delete-after"] + + config.vm.provider "virtualbox" do |v| + v.name = "bindfs-ubuntu2004" + end + config.vm.provider "libvirt" do |v| + v.driver = if File.exist?('/dev/kvm') then 'kvm' else 'qemu' end + end + + config.vm.provision "shell", inline: <<-SHELL + apt-get update + apt-get install -y fuse libfuse-dev build-essential pkg-config ruby valgrind + apt-get clean + adduser vagrant fuse + echo user_allow_other > /etc/fuse.conf + SHELL +end -- cgit v1.2.3