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
#!/bin/bash | |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
DIR="$(pwd)" | |
cd .. | |
export SWIFT_VERSION=swift-3.1.1-RELEASE | |
wget https://swift.org/builds/swift-3.1.1-release/ubuntu1404/${SWIFT_VERSION}/${SWIFT_VERSION}-ubuntu14.04.tar.gz | |
tar xzf $SWIFT_VERSION-ubuntu14.04.tar.gz | |
export PATH="${PWD}/${SWIFT_VERSION}-ubuntu14.04/usr/bin:${PATH}" | |
cd "$DIR" | |
else | |
export SWIFT_VERSION=swift-3.1.1-RELEASE | |
curl -O https://swift.org/builds/swift-3.1.1-release/xcode/${SWIFT_VERSION}/${SWIFT_VERSION}-osx.pkg | |
sudo installer -pkg ${SWIFT_VERSION}-osx.pkg -target / | |
export TOOLCHAINS=swift | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment