Add a CI check for doxygen issues.

This commit is contained in:
Pentarctagon 2020-12-31 02:55:31 -06:00 committed by Pentarctagon
parent 4c2b725ec0
commit 551aa31390
4 changed files with 17 additions and 2 deletions

View File

@ -136,6 +136,9 @@ fi
execute "WML validation" ./utils/CI/schema_validation.sh
execute "WML indentation check" checkindent
if [ "$IMAGE" != "1804" ]; then
execute "Doxygen check" ./utils/CI/doxygen-check.sh
fi
execute "WML tests" ./run_wml_tests -g -v -c -t 20
execute "Play tests" ./utils/CI/play_test_executor.sh
execute "Boost unit tests" ./utils/CI/test_executor.sh

12
utils/CI/doxygen-check.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
doxygen Doxyfile > doxy-output.txt 2>&1
LINES=`cat doxy-output.txt | wc -l`
if [ "$LINES" == "0" ]; then
echo "No doxygen errors or warnings!"
else
echo "Found doxygen errors or warnings!"
cat doxy-output.txt
exit 1
fi

View File

@ -23,6 +23,6 @@ RUN pip3 install --upgrade pip
RUN yes | pip3 install paramiko
# programs
RUN apt install -y -qq openssl gdb xvfb bzip2 git scons cmake make ccache gcc g++ clang lld
RUN apt install -y -qq openssl gdb xvfb bzip2 git scons cmake make ccache gcc g++ clang lld doxygen graphviz
WORKDIR /home/wesnoth-travis

View File

@ -23,6 +23,6 @@ RUN pip3 install --upgrade pip
RUN yes | pip3 install paramiko
# programs
RUN apt install -y -qq openssl gdb xvfb bzip2 git scons cmake make ccache gcc g++ clang lld
RUN apt install -y -qq openssl gdb xvfb bzip2 git scons cmake make ccache gcc g++ clang lld doxygen graphviz
WORKDIR /home/wesnoth-travis