Commit f6dc9938 authored by Emmanuel Milou's avatar Emmanuel Milou

#8763 Generate Doxygen with Hudson

parent 6d23cda9
This diff is collapsed.
......@@ -8,6 +8,7 @@ XML_RESULTS="cppunitresults.xml"
TEST=0
BUILD=
CODE_ANALYSIS=0
DOXYGEN=0
function run_code_analysis {
# Check if cppcheck is installed on the system
......@@ -16,6 +17,13 @@ function run_code_analysis {
fi
}
function gen_doxygen {
# Check if doxygen is installed on the system
if [ `which doxygen &>/dev/null ; echo $?` -ne 1 ] ; then
doxygen core-doc.cfg.in
fi
}
function build_daemon {
# Compile the daemon
......@@ -38,6 +46,9 @@ function build_daemon {
make -j
# Generate documentation
make doc
if [ $DOXYGEN == 1 ]; then
gen_doxygen
fi
# Compile unit tests
make check
popd
......@@ -83,7 +94,7 @@ fi
git clean -f -d -x
while getopts ":b: t a" opt; do
while getopts ":b: t a d" opt; do
case $opt in
b)
echo "-b was triggered. Parameter: $OPTARG" >&2
......@@ -97,6 +108,10 @@ while getopts ":b: t a" opt; do
echo "-a was triggered. Static code analysis will be run" >&2
CODE_ANALYSIS=1
;;
d)
echo "-d was triggered. Doxygen documentation will be generated" >&2
DOXYGEN=1
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment