Skip to content

Instantly share code, notes, and snippets.

@heckj
Forked from kylef/swiftenv-install.sh
Last active December 28, 2015 19:45
Show Gist options
  • Save heckj/818f2b5a3b2c3c1bb2d6 to your computer and use it in GitHub Desktop.
Save heckj/818f2b5a3b2c3c1bb2d6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Automatically installs swiftenv and run's swiftenv install.
# This script was designed for usage in CI systems.
git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv
export SWIFTENV_ROOT="$HOME/.swiftenv"
export PATH="$SWIFTENV_ROOT/bin:$PATH"
eval $(swiftenv init -)
if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then
swiftenv install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment