fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Peter AmmonAdd some vagrantfiles for building on BSDsd72adc012

master
1.4 KiB43 linesraw
1Vagrant.configure("2") do |config|
2  config.vm.box   = "generic/openbsd7"
3  config.vm.guest = :openbsd
4
5  # Host-only network; not public
6  config.vm.network "private_network", ip: "192.168.121.11"
7
8  # Make /sync once as vagrant:vagrant so rsync doesn't need sudo
9  config.vm.provision "shell", inline: <<~'SH'
10    set -e
11    install -d -o vagrant -g vagrant /sync
12
13    # Packages (runs as root)
14    export PKG_PATH="https://ftp.openbsd.org/pub/OpenBSD/$(uname -r)/packages/amd64/"
15    pkg_info -e git           >/dev/null || pkg_add git
16    pkg_info -e python%3.11   >/dev/null || pkg_add python%3.11
17    pkg_info -e rust          >/dev/null || pkg_add rust
18    git --version
19    python3.11 --version
20    rustc --version
21  SH
22
23  # sync fish-shell to /vagrant/fish-shell
24  config.vm.synced_folder "../../..", "/home/vagrant/fish-shell",
25    type: "rsync",
26    rsync__rsync_path: "sudo rsync", # sudo in guest
27    rsync__exclude: [".git/", ".git", "fish-shell/target/", "fish-shell/build/"],
28    rsync__args: [
29      "--archive", "--delete",
30      "--no-owner", "--no-group",
31      "--omit-dir-times",
32      "--info=progress2", "--stats"
33    ]
34
35
36  config.vm.provider :libvirt do |v|
37    v.cpus = 4
38    v.memory = 2048
39    # Max I/O for disposable builds. Remove if you need durability.
40    v.disk_driver :cache => 'unsafe'
41    # Note: OpenBSD needs graphics on; leave default graphics enabled.
42  end
43end