From 11f581e50f33bcf1fdf132cdf8d86418a93920a4 Mon Sep 17 00:00:00 2001 From: phlummox Date: Wed, 24 Jun 2020 15:03:35 +0000 Subject: [PATCH] Use an earlier version of stack for lts-6. This is to deal with bug https://github.com/commercialhaskell/stack/issues/5253, stack 2.1.3 doesn't correctly build happy for early LTS's. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bd2a552..707ad59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,9 @@ before_install: travis_retry curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin else # recent versions of stack fail to work with lts <= 7 - if [[ $ARGS == *"lts-7"* ]]; then + # but we don't expect to build with lts <= 5, so just 2 checks + # to do. + if [[ $ARGS == *"lts-7"* || $ARGS == *"lts-6"* ]]; then url=https://github.com/commercialhaskell/stack/releases/download/v1.9.3/stack-1.9.3-linux-x86_64.tar.gz else url=https://get.haskellstack.org/stable/linux-x86_64.tar.gz