From 7b3cc7d1a9e4bd677d8d86ffff25e996d7bc4442 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 28 Jun 2018 17:25:31 +0200 Subject: travis: Try not using `--only-dependencies` with ghc 7.10. --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 33739adc6..641708f17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,7 +113,14 @@ install: cabal) cabal --version travis_retry cabal update - cabal install -v2 --disable-optimization --only-dependencies --flags="$FLAGS" --enable-tests --force-reinstalls --reorder-goals --max-backjumps=-1 $CABALARGS + case "$GHCVER" in + 7.10.3) + cabal install -v2 --disable-optimization --flags="$FLAGS" --enable-tests --force-reinstalls --reorder-goals --max-backjumps=-1 $CABALARGS + ;; + *) + cabal install -v2 --disable-optimization --only-dependencies --flags="$FLAGS" --enable-tests --force-reinstalls --reorder-goals --max-backjumps=-1 $CABALARGS + ;; + esac ;; esac -- cgit v1.2.3