Created
April 25, 2017 05:10
-
-
Save erewok/dd2405a8958a9a1f9cbf5e8a33f478d8 to your computer and use it in GitHub Desktop.
install stack for travis
This file contains hidden or 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
set -o errexit -o verbose | |
if test -f "$HOME/.local/bin/stack" | |
then | |
echo 'Stack is already installed.' | |
else | |
echo "Installing Stack for $TRAVIS_OS_NAME..." | |
URL="https://www.stackage.org/stack/$TRAVIS_OS_NAME-x86_64" | |
curl --location "$URL" > stack.tar.gz | |
gunzip stack.tar.gz | |
tar -x -f stack.tar --strip-components 1 | |
mkdir -p "$HOME/.local/bin" | |
mv stack "$HOME/.local/bin/" | |
rm stack.tar | |
fi | |
stack --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from https://github.com/ChrisPenner/tempered/blob/master/tools/install-stack.sh