Skip to content

Instantly share code, notes, and snippets.

@lexrus lexrus/Vagrantfile
Created Dec 4, 2015

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| = "ubuntu/vivid64"
# "forwarded_port", guest: 80, host: 8080 "private_network", ip: ""
config.vm.synced_folder "./code", "/code"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "1024"
vb.cpus = 4
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 swift
git clone --depth 1 llvm
git clone --depth 1 clang
git clone --depth 1 lldb
git clone --depth 1 cmark
git clone --depth 1 llbuild
git clone --depth 1 swiftpm
git clone --depth 1
git clone --depth 1
~/swift/utils/build-script -l -b -p --xctest --foundation
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.