mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
Merge pull request #9819 from jcarrano/doccheck-report-total-failure
tools/doccheck: Detect when `make doc` fails to run.
This commit is contained in:
commit
f4e810cfff
19
dist/tools/doccheck/check.sh
vendored
19
dist/tools/doccheck/check.sh
vendored
@ -20,15 +20,20 @@ else
|
||||
CRESET=
|
||||
fi
|
||||
|
||||
ERRORS=$(make -C "${RIOTBASE}" doc 2>&1 | \
|
||||
grep '.*warning' | \
|
||||
sed "s#${PWD}/\([^:]*\)#\1#g")
|
||||
DOXY_OUTPUT=$(make -C "${RIOTBASE}" doc 2>&1)
|
||||
DOXY_ERRCODE=$?
|
||||
|
||||
if [ -n "${ERRORS}" ]
|
||||
then
|
||||
echo -e "${CERROR}ERROR: Doxygen generates the following warnings:${CRESET}"
|
||||
echo "${ERRORS}"
|
||||
if [ "${DOXY_ERRCODE}" -ne 0 ] ; then
|
||||
echo "'make doc' exited with non-zero code (${DOXY_ERRCODE})"
|
||||
echo "${DOXY_OUTPUT}"
|
||||
exit 2
|
||||
else
|
||||
ERRORS=$(echo "${DOXY_OUTPUT}" | grep '.*warning' | sed "s#${PWD}/\([^:]*\)#\1#g")
|
||||
if [ -n "${ERRORS}" ] ; then
|
||||
echo -e "${CERROR}ERROR: Doxygen generates the following warnings:${CRESET}"
|
||||
echo "${ERRORS}"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
exclude_filter() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user