Skip to content

Commit

Permalink
[MRG] CI build pdf docs when master or version branch (scikit-learn#7747
Browse files Browse the repository at this point in the history
)
  • Loading branch information
waterponey authored and jnothman committed Oct 29, 2016
1 parent edc9e7f commit e841996
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build_tools/circle/build_doc.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -x
set -e

Expand All @@ -17,7 +18,8 @@ fi
sudo -E apt-get -yq update
sudo -E apt-get -yq remove texlive-binaries --purge
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes \
install dvipng texlive-latex-base texlive-latex-extra
install dvipng texlive-latex-base texlive-latex-extra \
texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended

# deactivate circleci virtualenv and setup a miniconda env instead
if [[ `type -t deactivate` ]]; then
Expand Down Expand Up @@ -51,5 +53,11 @@ source activate testenv
# Build and install scikit-learn in dev mode
python setup.py develop

if [[ "$CIRCLE_BRANCH" =~ ^master$|^[0-9]+\.[0-9]+\.X$ && -z "$CI_PULL_REQUEST" ]]
then
MAKE_TARGET=dist
else
MAKE_TARGET=html
fi
# The pipefail is requested to propagate exit code
set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
set -o pipefail && cd doc && make $MAKE_TARGET 2>&1 | tee ~/log.txt

0 comments on commit e841996

Please sign in to comment.