[commit: ghc] wip/fix-docs: circleci: Install sphinx (7081ded)

git at git.haskell.org git at git.haskell.org
Sun Aug 5 12:29:35 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/fix-docs
Link       : http://ghc.haskell.org/trac/ghc/changeset/7081ded9fc3133e1e712053e3da3a9be0f8d5115/ghc

>---------------------------------------------------------------

commit 7081ded9fc3133e1e712053e3da3a9be0f8d5115
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Aug 4 00:21:58 2018 -0400

    circleci: Install sphinx


>---------------------------------------------------------------

7081ded9fc3133e1e712053e3da3a9be0f8d5115
 .circleci/prepare-system.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh
index c9320ed..45564ea 100755
--- a/.circleci/prepare-system.sh
+++ b/.circleci/prepare-system.sh
@@ -22,6 +22,17 @@ EOF
 
 case "$(uname)" in
   Linux)
+    # Install documentation tools
+    if [[ -e dnf ]]; then
+        dnf -y install sphinx-build \
+            texlive texlive-latex texlive-xetex \
+            texlive-collection-latex texlive-collection-latexrecommended \
+            texlive-xetex-def texlive-collection-xetex
+    else
+        sudo apt-get update -qq
+        sudo apt-get install -qy python3-sphinx texlive-xetex
+    fi
+
     if [[ -n ${TARGET:-} ]]; then
       if [[ $TARGET = FreeBSD ]]; then
         # cross-compiling to FreeBSD
@@ -47,6 +58,7 @@ case "$(uname)" in
       sudo ln -s /home/ghc/.cabal/bin/HsColour /usr/local/bin/HsColour || true
     fi
     ;;
+
   Darwin)
     if [[ -n ${TARGET:-} ]]; then
       fail "uname=$(uname) not supported for cross-compilation"
@@ -55,6 +67,7 @@ case "$(uname)" in
     # does not work.
     brew upgrade python
     brew install ghc cabal-install ncurses gmp
+    pip3 install sphinx
     cabal update
     cabal install --reinstall alex happy haddock hscolour --index-state=$hackage_index_state
     # put them on the $PATH, don't fail if already installed



More information about the ghc-commits mailing list