Permalink
Browse files

travis: fetch stack only if needed again

  • Loading branch information...
simonmichael committed Oct 24, 2018
1 parent 62ced48 commit 67f5b1071ec26493b014423c10ca91fe75d0f344
Showing with 7 additions and 2 deletions.
  1. +7 −2 .travis.yml
@@ -91,8 +91,13 @@ install: # command output is hidden as they complete
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
#- if [[ ! -x ~/.local/bin/stack ]]; then travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
# Fetch latest stack unconditionally. Do this after a stack release or if in doubt.
#- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
# Or, fetch latest stack if a stack is not already installed. Saves a little time/fragility.
- if [[ ! -x ~/.local/bin/stack ]]; then travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
- which stack
- type -a stack
- stack --version

0 comments on commit 67f5b10

Please sign in to comment.