We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df15da1 commit 95b2575Copy full SHA for 95b2575
1 file changed
.travis-setup.sh
@@ -15,15 +15,18 @@ fetch_stack_linux() {
15
curl -sL https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack';
16
}
17
18
+# We need stack to generate cabal files with precise bounds, even for cabal
19
+# builds.
20
+mkdir -p ~/.local/bin;
21
+if [ `uname` = "Darwin" ]; then
22
+ travis_retry fetch_stack_osx
23
+else
24
+ travis_retry fetch_stack_linux
25
+fi
26
+
27
case "$BUILD" in
28
stack)
- mkdir -p ~/.local/bin;
- if [ `uname` = "Darwin" ]; then
- travis_retry fetch_stack_osx
- else
- travis_retry fetch_stack_linux
- fi;
-
29
+ # However, we only need stack to download GHC for stack builds.
30
travis_retry stack --no-terminal setup;
31
;;
32
cabal)
0 commit comments