mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Docs: early exist build process on error
Don't attempt to build docs when generation fails.
This commit is contained in:
parent
02b0f51164
commit
2c3c8fbaed
1 changed files with 11 additions and 1 deletions
|
|
@ -54,7 +54,17 @@ SPHINXBASE=doc/python_api
|
|||
|
||||
if $DO_EXE_BLENDER ; then
|
||||
# dont delete existing docs, now partial updates are used for quick builds.
|
||||
$BLENDER_BIN --background -noaudio --factory-startup --python $SPHINXBASE/sphinx_doc_gen.py
|
||||
$BLENDER_BIN \
|
||||
--background \
|
||||
-noaudio \
|
||||
--factory-startup \
|
||||
--python-exit-code 1 \
|
||||
--python $SPHINXBASE/sphinx_doc_gen.py
|
||||
|
||||
if (($? == 1)) ; then
|
||||
echo "Generating documentation failed, aborting"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue