Skip to content

Commit

Permalink
ci: Disable Haddock on Docgent and Haskell-backend branches.
Browse files Browse the repository at this point in the history
 * With +docgent, we use Pandoc, which won't Haddock in Stack.
 * With +haskell-backend, we get the haskell-lexer, which segfaults Haddock.
  • Loading branch information
jashank committed Mar 5, 2020
1 parent f696055 commit 329cd7e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,27 @@ before_install:
- >-
[ -z ${WITH_BUILTIN_ARRAYS} ] ||
STACK_FLAGS="${STACK_FLAGS} --flag cogent:builtin-arrays"
# Pandoc causes Stack to choke; so, with Docgent enabled, no fish.
# - <https://github.com/commercialhaskell/stack/issues/3989>
# - <https://github.com/commercialhaskell/stack/issues/4428>
#
# `haskell-src-exts' causes Haddock to choke (by segfaulting?!)
# - <https://travis-ci.org/NICTA/cogent/jobs/656011492>
- >-
export STACK_FLAGS
if [ -z ${WITH_DOCGENT} ] && [ -z ${WITH_HASKELL_BACKEND} ];
then
STACK_FLAGS="${STACK_FLAGS} --haddock --haddock-deps";
fi
- >-
export STACK_FLAGS;
echo $STACK_FLAGS
install:
# Build dependencies
- cd $REPO/cogent
- stack --no-terminal --install-ghc test --haddock --haddock-deps --only-dependencies $STACK_FLAGS
- stack --no-terminal --install-ghc test --only-dependencies $STACK_FLAGS

jobs:
fast_finish: true
Expand Down Expand Up @@ -133,7 +145,7 @@ jobs:
script:
# Build the package, its tests, and run the tests
- cd $REPO/cogent
- stack --no-terminal test --haddock --haddock-deps $STACK_FLAGS
- stack --no-terminal test $STACK_FLAGS
- cogent_bin=$(stack --no-terminal exec -- which cogent)
- install -m 755 ${cogent_bin} ~/.local/bin

Expand Down

0 comments on commit 329cd7e

Please sign in to comment.