Last active
July 19, 2017 01:29
-
-
Save soffes/591ef5a0abc91f79f5ddc30467fceaf5 to your computer and use it in GitHub Desktop.
Vagrantfile for working with Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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