Skip to content

Commit b086afd

Browse files
BLD CI: let travis fail if doc build generates exceptions
1 parent ea883e0 commit b086afd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/script.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,14 @@ RET="$?"
2424
# wait until subprocesses finish (build_docs.sh)
2525
wait
2626

27+
# check if doc build failed
28+
grep "Exception" -a /tmp/doc.log
29+
30+
if [ "$?" = "0" ]; then
31+
echo "Doc build has failures"
32+
echo $(grep "Exception" -a /tmp/doc.log)
33+
# letting the travis build fail
34+
exit 1
35+
fi
36+
2737
exit "$RET"

0 commit comments

Comments
 (0)