-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile.macos.build
66 lines (53 loc) · 2.9 KB
/
Vagrantfile.macos.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- mode: ruby -*-
# vi: set ft=ruby :
versions = Hash[
"big_sur" => "11.2.3",
"monterey" => "12.6.1",
"ventura" => "13.5",
]
macos_name = ENV["MACOS_NAME"] || "big_sur"
if macos_name == ""
puts "ENV['MACOS_NAME'] is not set"
exit
end
if !versions.member?(macos_name)
puts "Unknown 'MACOS_NAME': #{macos_name}"
exit
end
macos_version = versions[macos_name]
Vagrant.configure("2") do |config|
config.vm.box = "macos-#{macos_name}-#{macos_version}"
config.vm.define "macos-#{macos_name}-build"
config.vm.box_check_update = false
# "rsync" is host to guest only
#config.vm.synced_folder ".", "/Users/vagrant/Shared", type: "rsync"
config.vm.synced_folder ".", "/vagrant", :disabled => true
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.cpus = 2
vb.memory = 4096
vb.check_guest_additions = false
end
config.vm.provision "shell",
binary: true,
privileged: false,
inline: "mkdir -p /Users/vagrant/velisp"
config.vm.provision "file", source: "./examples", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./grammar", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./lib", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./patches", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./src", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./test", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./util", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./macos", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./.eslintrc.json", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./Makefile", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./package.json", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./package-lock.json", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./package.json.template", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./pkg.json", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./rollup.config.js", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./LICENSE", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./README-en-macos.template", destination: "/Users/vagrant/velisp/"
config.vm.provision "file", source: "./README-ru-macos.template", destination: "/Users/vagrant/velisp/"
end