git.iko.soy/typeable/pandoc
on master help sign in
travis: download stack only in stack BUILD (#3357)
117f3d2ickc
.travis.yml+9−8
@@ -80,16 +80,17 @@ before_install:
80# We want to always allow newer versions of packages when building on GHC HEAD
80# We want to always allow newer versions of packages when building on GHC HEAD
81- CABALARGS=""
81- CABALARGS=""
82- if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi
82- if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi
83−
84−# Download and unpack the stack executable
85- export PATH=$PATH:/opt/happy/1.19.5/bin/:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.local/bin
83- 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
87- |
85- |
86+ if [[ $BUILD == "stack" ]]; then
87+ mkdir -p ~/.local/bin
88− if [ `uname` = "Darwin" ]
88+ if [ `uname` = "Darwin" ]
89− then
89+ then
90− curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
90+ curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
91− else
91+ else
92− curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
92+ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
93+ fi
93 fi
94 fi
94
95
95install:
96install: