@@ -80,16 +80,17 @@ before_install:
8080# We want to always allow newer versions of packages when building on GHC HEAD
8181- CABALARGS=""
8282- if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi
83−
84−# Download and unpack the stack executable
8583- export PATH=$PATH:/opt/happy/1.19.5/bin/:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.local/bin
86−- mkdir -p ~/.local/bin
84+# Download and unpack the stack executable
8785- |
88− if [ `uname` = "Darwin" ]
89− then
90− curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
91− else
92− curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
86+ if [[ $BUILD == "stack" ]]; then
87+ mkdir -p ~/.local/bin
88+ if [ `uname` = "Darwin" ]
89+ then
90+ curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
91+ else
92+ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
93+ fi
9394 fi
9495
9596install: