diff options
author | Takenobu Tani <takenobu.hs@gmail.com> | 2019-04-13 15:54:43 +0900 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-04-19 10:22:27 -0400 |
commit | 1df8c2175cb6214dc0c09c37113140b2f0b38bce (patch) | |
tree | ee4dc10e92a25935f1dd3e0d8e95f99e6cc93864 | |
parent | 71abf35af50ffbeb8454d2d73777410c9c4fcc5a (diff) | |
download | haskell-1df8c2175cb6214dc0c09c37113140b2f0b38bce.tar.gz |
gitlab-ci: Enable -haddock while building ghc library
Fixing #16415. This is a variant of @takenobu-hs's !769.
-rwxr-xr-x | .circleci/prepare-system.sh | 1 | ||||
-rw-r--r-- | .gitlab-ci.yml | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh index 804e0fd890..fbbb81b260 100755 --- a/.circleci/prepare-system.sh +++ b/.circleci/prepare-system.sh @@ -30,6 +30,7 @@ BuildFlavour=$BUILD_FLAVOUR ifneq "\$(BuildFlavour)" "" include mk/flavours/\$(BuildFlavour).mk endif +GhcLibHcOpts+=-haddock EOF case "$(uname)" in diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 291dff03c3..39fc7484b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -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: @@ -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 |