From bb754b896f2174ffceccb188174b167518eb1cca Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Tue, 9 Aug 2016 13:02:59 +0300 Subject: [PATCH] [Travis] Fail early on stack solver fails --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ee4e70..51e4e2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ install: resf="ghc-$GHCVER.yaml" echo "resolver: ghc-$GHCVER" > "$resf" echo "packages: ['.']" >> "$resf" - stack --no-terminal solver --update-config --stack-yaml="$resf" + stack --no-terminal solver --update-config --stack-yaml="$resf" || exit 101 sed -i 's/^resolver:/compiler:/;s/^extra-deps:/packages:/' "$resf" echo "resolver: { name: 'ghc-$GHCVER', location: './$resf' }" > stack.yaml echo "packages: ['.']" >> stack.yaml