modif on doxygen gen
continuous-integration/drone/push Build was killed Details

master
Alexandre AGOSTINHO 2 years ago
parent 2ab70080f7
commit 17efe3ec44

@ -56,14 +56,14 @@ fi
RELATIVE_PATH=$(echo "$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DEST/" | tr -s "/")
. "$GENERATOR_SCRIPT"
generate "$DOC_DIR" # generates doc using the wanted generator
if [[ -n $BRANCH && ! $DRONE_BRANCH =~ $BRANCH ]]; then
echo "ignoring deploy step since current branch doesn't match $BRANCH"
exit
fi
. "$GENERATOR_SCRIPT"
generate "$DOC_DIR" # generates doc using the wanted generator
SERVER_TARGET="/usr/share/nginx/html/$RELATIVE_PATH"
# launches rsync in archive, verbose and compression mode

@ -1,18 +1,13 @@
GEN_PATH="/docs/doxygen"
# Generate doxygen.
generate() {
echo "- generating doxygen"
mkdir -p $GEN_PATH
if [ -f "/drone/src/$1/Doxyfile" ];
then
cd /drone/src/$1/ && doxygen Doxyfile
else
# Create empty directory for rsync to delete remote content.
rm -Rf $GEN_PATH
mkdir -p $GEN_PATH
if [ ! -f "$1"/Doxyfile ]; then
echo "doxygen generator error : file $1/Doxyfile is missing" >&2
exit 1
fi
mkdir -p $GEN_PATH
cd "$1"
(cat Doxyfile; echo -e "OUTPUT_DIRECTORY = \nHTML_OUTPUT = $GEN_PATH") | doxygen -
}

Loading…
Cancel
Save