Skip to content

Apache DataFusion SQL Query Engine

ARROW-1326: [Python] Fix Sphinx Build in Travis CI, treat Sphinx warnings as errors

Wes McKinney06f337e72513
diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.sh
index 4a50d2faaf..66cd17d5ff 100755
--- a/ci/travis_script_python.sh
+++ b/ci/travis_script_python.sh
@@ -120,14 +120,13 @@ python_version_tests() {
PYARROW_PATH=$CONDA_PREFIX/lib/python$PYTHON_VERSION/site-packages/pyarrow
python -m pytest -vv -r sxX -s $PYARROW_PATH --parquet
- pushd $ARROW_PYTHON_DIR
- # Build documentation once
- if [[ "$PYTHON_VERSION" == "3.6" ]]
- then
- conda install -y -q --file=doc/requirements.txt
- python setup.py build_sphinx -s doc/source
+ if [ "$PYTHON_VERSION" == "3.6" ] && [ $TRAVIS_OS_NAME == "linux" ]; then
+ # Build documentation once
+ pushd $ARROW_PYTHON_DIR/doc
+ conda install -y -q --file=requirements.txt
+ sphinx-build -b html -d _build/doctrees -W source _build/html
+ popd
fi
- popd
}
# run tests for python 2.7 and 3.6