Skip to content

Instantly share code, notes, and snippets.

@soffes
Last active July 19, 2017 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soffes/591ef5a0abc91f79f5ddc30467fceaf5 to your computer and use it in GitHub Desktop.
Save soffes/591ef5a0abc91f79f5ddc30467fceaf5 to your computer and use it in GitHub Desktop.
Vagrantfile for working with Swift
Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1610"
config.ssh.pty = true
config.vm.provision "shell", inline: <<-SHELL
su vagrant
cd
sudo apt-get -y update
sudo apt-get install -y git python-dev libcurl3 clang
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
echo 'export SWIFTENV_ROOT="$HOME/.swiftenv"' >> ~/.bash_profile
echo 'export PATH="$SWIFTENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(swiftenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
swiftenv install 3.1
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment