aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-06-28 17:25:31 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2018-06-28 17:25:31 +0200
commit7b3cc7d1a9e4bd677d8d86ffff25e996d7bc4442 (patch)
tree7d21debc34004bed2d21c58716e7f6b63f21c2b4
parent013847554e5a405a3eb6ef8c9e7d349ebfc34845 (diff)
downloadpandoc-7b3cc7d1a9e4bd677d8d86ffff25e996d7bc4442.tar.gz
travis: Try not using `--only-dependencies` with ghc 7.10.
-rw-r--r--.travis.yml9
1 files changed, 8 insertions, 1 deletions
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