From 9ee1060599d643296afe6be0542ed974939d5e95 Mon Sep 17 00:00:00 2001 From: Jashank Jeremy Date: Thu, 5 Mar 2020 11:51:41 +1100 Subject: [PATCH] ci: Better behaviour of Haddock on CI. --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb76e6247..d3974255c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -86,9 +86,10 @@ before_install: # `haskell-src-exts' causes Haddock to choke (by segfaulting?!) # - - >- - [ -z ${WITH_DOCGENT} ] || [ -z ${WITH_HASKELL_BACKEND} ] && - STACK_FLAGS="${STACK_FLAGS} --haddock --haddock-deps"; - true + if [ -z ${WITH_DOCGENT} ] && [ -z ${WITH_HASKELL_BACKEND} ]; + then + STACK_FLAGS="${STACK_FLAGS} --haddock --haddock-deps"; + fi - >- export STACK_FLAGS;