-
Notifications
You must be signed in to change notification settings - Fork 69
/
Vagrantfile
83 lines (74 loc) · 3.45 KB
/
Vagrantfile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Note: Use 'sudo su' in the ubuntu machine before make'ing.
# To mount:
# mkdir "/home/vagrant/KSP Assemblies"
# mount -t vboxsf Assemblies "/home/vagrant/KSP Assemblies"
Vagrant.configure("2") do |config|
config.vm.define "bionic" do |bionic|
bionic.vm.box = "ubuntu/bionic64"
bionic.vm.box_url = "https://app.vagrantup.com/ubuntu/boxes/bionic64/versions/20180315.0.0/providers/virtualbox.box"
bionic.vm.synced_folder "../KSP Assemblies", "/home/vagrant/KSP Assemblies", id: "Assemblies"
script = <<SCRIPT
echo Provisioning Principia
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-5.0 main'
apt-get update
apt-get install -y clang-5.0 clang-tools-5.0 clang-format-5.0 clang-tidy-5.0 git unzip wget libc++-dev libc++abi-dev binutils make automake libtool curl cmake monodevelop
ln -s /usr/bin/clang-5.0 /usr/bin/clang
clang --version
ln -s /usr/bin/clang++-5.0 /usr/bin/clang++
clang++ --version
ln -s /usr/bin/clang-format-5.0 /usr/bin/clang-format
clang-format --version
ln -s /usr/bin/clang-format-diff-5.0 /usr/bin/clang-format-diff
clang-format-diff --help
ln -s /usr/bin/clang-tidy-5.0 /usr/bin/clang-tidy
clang-tidy --version
git clone https://github.com/mockingbirdnest/Principia.git principia
chown -R vagrant:vagrant principia KSP
cd principia
if [ -d deps ]; then echo "Dependencies already installed, remove deps/ to reinstall."; else ./install_deps.sh; fi
SCRIPT
bionic.vm.provision "shell", inline: script
bionic.vm.provider "virtualbox" do |v|
v.memory = 8192
v.cpus = 4
end
end
config.vm.define "disco" do |disco|
disco.vm.box = "ubuntu/disco64"
disco.vm.box_url = "https://app.vagrantup.com/ubuntu/boxes/disco64/versions/20190828.0.0/providers/virtualbox.box"
disco.vm.synced_folder "../KSP Assemblies", "/home/vagrant/KSP Assemblies", id: "Assemblies"
script = <<SCRIPT
echo Provisioning Principia
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
add-apt-repository 'deb http://apt.llvm.org/disco/ llvm-toolchain-disco-8 main'
apt-get update
apt-get install -y clang-8 clang-tools-8 clang-format-8 clang-tidy-8 git unzip wget libc++-dev libc++abi-dev binutils make automake libtool curl cmake monodevelop
ln -s /usr/bin/clang-8 /usr/bin/clang
clang --version
ln -s /usr/bin/clang++-8 /usr/bin/clang++
clang++ --version
ln -s /usr/bin/clang-format-8 /usr/bin/clang-format
clang-format --version
ln -s /usr/bin/clang-format-diff-8 /usr/bin/clang-format-diff
clang-format-diff --help
ln -s /usr/bin/clang-tidy-8 /usr/bin/clang-tidy
clang-tidy --version
git clone https://github.com/mockingbirdnest/Principia.git principia
chown -R vagrant:vagrant principia KSP
cd principia
if [ -d deps ]; then echo "Dependencies already installed, remove deps/ to reinstall."; else ./install_deps.sh; fi
SCRIPT
disco.vm.provision "shell", inline: script
disco.vm.provider "virtualbox" do |v|
v.memory = 8192
v.cpus = 4
end
end
end