Skip to content

Commit

Permalink
gitlab-ci: Enable -haddock while building ghc library
Browse files Browse the repository at this point in the history
Fixing #16415. This is a variant of @takenobu-hs's !769.
  • Loading branch information
takenobu-hs authored and bgamari committed Apr 19, 2019
1 parent 71abf35 commit 1df8c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/prepare-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ BuildFlavour=$BUILD_FLAVOUR
ifneq "\$(BuildFlavour)" ""
include mk/flavours/\$(BuildFlavour).mk
endif
GhcLibHcOpts+=-haddock
EOF

case "$(uname)" in
Expand Down
5 changes: 4 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ validate-x86_64-darwin:
- PATH="`pwd`/toolchain/bin:$PATH"
# Disable sphinx PDF output as MacTeX apparently doesn't provide xelatex
- echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
- echo "GhcLibHcOpts += -haddock" >> mk/build.mk
- echo "libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp" >> mk/build.mk
after_script:
- cp -Rf $HOME/.cabal cabal-cache
Expand All @@ -153,13 +154,14 @@ validate-x86_64-darwin:
- git submodule update --init --recursive
- git checkout .gitmodules
- "git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true"
- bash .circleci/prepare-system.sh
# Build hyperlinked sources for documentation when building releases
- |
if [[ -n "$CI_COMMIT_TAG" ]]; then
echo "GhcLibHcOpts += -haddock" >> mk/build.mk
echo "EXTRA_HADDOCK_OPTS += --hyperlinked-source --quickjump" >> mk/build.mk
fi
- bash .circleci/prepare-system.sh
# workaround for docker permissions
- sudo chown ghc:ghc -R .
after_script:
Expand Down Expand Up @@ -383,6 +385,7 @@ validate-x86_64-linux-fedora27:
- git submodule update --init --recursive
- git checkout .gitmodules
- bash .gitlab/win32-init.sh
- bash -c 'echo "GhcLibHcOpts += -haddock" >> mk/build.mk'
after_script:
- rd /s /q tmp
- robocopy /np /nfl /ndl /e "%APPDATA%\cabal" cabal-cache
Expand Down

0 comments on commit 1df8c21

Please sign in to comment.