Skip to content

Commit

Permalink
Add a CI check for doxygen issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jan 1, 2021
1 parent 4c2b725 commit 551aa31
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-scripts/docker.sh
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions utils/CI/doxygen-check.sh
@@ -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
2 changes: 1 addition & 1 deletion utils/dockerbuilds/CI/Dockerfile-base-1804-master
Expand Up @@ -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
2 changes: 1 addition & 1 deletion utils/dockerbuilds/CI/Dockerfile-base-2004-master
Expand Up @@ -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

0 comments on commit 551aa31

Please sign in to comment.