Skip to content

Commit 86804ec

Browse files
committed
travis-CI: When building doc, make sure the build stops on doc errs
When we had missing doc, we would just skip it on the CI, so enforce things, and exit hard on doc warnings or errors. Signed-off-by: Robin Getz <[email protected]>
1 parent 27eaac3 commit 86804ec

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CI/travis/make_linux

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ handle_default() {
3737
cmake ${FLAGS} ..
3838
echo "### make"
3939
make
40+
# check the error output if either file isn't empty
41+
if [ -s ./Dox_output_libiio -o -s ./Dox_output_csharp -o -s ./Spx_output_python ] ; then
42+
if [ -s ./Dox_output_libiio ] ; then
43+
echo "### ERRORs in Dox_output_libiio"
44+
cat ./Dox_output_libiio
45+
fi
46+
if [ -s ./Dox_output_csharp ] ; then
47+
echo "### ERRORs in Dox_output_csharp"
48+
cat ./Dox_output_csharp
49+
fi
50+
if [ -s ./Spx_output_python ] ; then
51+
echo "### ERRRORs in Spx_output_python"
52+
cat ./Spx_output_python
53+
fi
54+
exit 1
55+
else
56+
echo "### No errors in Doc"
57+
ls -l Dox_output_csharp Dox_output_libiio Spx_output_python
58+
fi
4059
fi
4160
echo "### make package"
4261
make package

0 commit comments

Comments
 (0)