[commit: ghc] wip/fix-docs: circleci: Install sphinx and TexLive (2073719)
git at git.haskell.org
git at git.haskell.org
Sun Aug 5 12:45:27 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/fix-docs
Link : http://ghc.haskell.org/trac/ghc/changeset/20737199bf7fdc622cd048e467eb458ebffbe7ec/ghc
>---------------------------------------------------------------
commit 20737199bf7fdc622cd048e467eb458ebffbe7ec
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sat Aug 4 00:21:58 2018 -0400
circleci: Install sphinx and TexLive
>---------------------------------------------------------------
20737199bf7fdc622cd048e467eb458ebffbe7ec
.circleci/prepare-system.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh
index c9320ed..1cdea61 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 yum ]]; then
+ yum -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,9 @@ case "$(uname)" in
# does not work.
brew upgrade python
brew install ghc cabal-install ncurses gmp
+ brew install caskroom/cask/brew-cask
+ brew cask install mactex
+ 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