Skip to content

Instantly share code, notes, and snippets.

@lexrus lexrus/Vagrantfile
Created Dec 4, 2015

Embed
What would you like to do?
Vagrantfile for building latest Swift source in Ubuntu 15 with VirtualBox. Please install VirtualBox and Vagrant before vagrant up.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/vivid64"
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder "./code", "/code"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "1024"
vb.cpus = 4
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo locale-gen en_US.UTF-8
sudo apt-get install -y \
git cmake ninja-build clang uuid-dev libicu-dev icu-devtools \
libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig \
libpython-dev libncurses5-dev pkg-config re2c
cd ~
git clone --depth 1 https://github.com/apple/swift.git swift
git clone --depth 1 https://github.com/apple/swift-llvm.git llvm
git clone --depth 1 https://github.com/apple/swift-clang.git clang
git clone --depth 1 https://github.com/apple/swift-lldb.git lldb
git clone --depth 1 https://github.com/apple/swift-cmark.git cmark
git clone --depth 1 https://github.com/apple/swift-llbuild.git llbuild
git clone --depth 1 https://github.com/apple/swift-package-manager.git swiftpm
git clone --depth 1 https://github.com/apple/swift-corelibs-xctest.git
git clone --depth 1 https://github.com/apple/swift-corelibs-foundation.git
~/swift/utils/build-script -l -b -p --xctest --foundation
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.