summaryrefslogtreecommitdiff
path: root/citools/jenkins-build.sh
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-06-24 16:47:32 +0100
committerVincent Sanders <vince@kyllikki.org>2015-06-24 16:47:32 +0100
commit92a9156ac26570480205425012fe708431d48a13 (patch)
tree7d4bc8a0b5c42236b33a0625a36101feddfe9c07 /citools/jenkins-build.sh
parent6548d564fd75795806ee9f9e7c6abaa43e56cdf5 (diff)
downloadbuildsystem-92a9156ac26570480205425012fe708431d48a13.tar.gz
buildsystem-92a9156ac26570480205425012fe708431d48a13.tar.bz2
Update documentation generation
Diffstat (limited to 'citools/jenkins-build.sh')
-rwxr-xr-xcitools/jenkins-build.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/citools/jenkins-build.sh b/citools/jenkins-build.sh
index 2646427..e0b5929 100755
--- a/citools/jenkins-build.sh
+++ b/citools/jenkins-build.sh
@@ -24,13 +24,14 @@
# This script may be executed by jenkins jobs that use the core buildsystem
#
-# Usage: jenkins-build.sh [install|test-install|coverage|static]
+# Usage: jenkins-build.sh [install|test-install|coverage|static|docs]
#
# install - build and install
# test-install - build, test and install
# coverage - run coverage
# static - perform a static analysis
# coverity - perform a coverity scan
+# docs - build doxygen docs
# HOST must be in the environment and set correctly
if [ "x${HOST}" = "x" ];then
@@ -57,6 +58,7 @@ TARGET_INSTALL=
TARGET_COVERAGE=
TARGET_STATIC=
TARGET_COVERITY=
+TARGET_DOCS=
# Which variant is being generated
VARIANT="release"
@@ -94,6 +96,10 @@ case "$1" in
TARGET_INSTALL=${HOST}
;;
+ "docs")
+ TARGET_DOCS=${HOST}
+ ;;
+
"")
# default is test only on Linux and install
# Currently most tests do not work on targets except for Linux
@@ -103,13 +109,14 @@ case "$1" in
*)
cat <<EOF
-Usage: jenkins-build.sh [install|test-install|coverage|static]
+Usage: jenkins-build.sh [install|test-install|coverage|static|docs]
install build and install
test-install build, test and install
coverage run coverage
static perform a static anaysis
coverity perform a coverity scan
+ docs generate doxygen docs
EOF
exit 1
;;
@@ -201,6 +208,11 @@ elif [ "x${HOST}" = "x${TARGET_COVERITY}" ]; then
curl --form "project=${COVERITY_PROJECT}" --form "token=${COVERITY_TOKEN}" --form "email=${COVERITY_USER}" --form "file=@coverity-scan.tar.gz" --form "version=${COVERITY_VERSION}" --form "description=Git Head build" http://scan5.coverity.com/cgi-bin/upload.py
+elif [ "x${HOST}" = "x${TARGET_DOCS}" ]; then
+ # Documentation build
+ ${MAKE} Q= HOST=${HOST} VARIANT=${VARIANT} docs
+
+
else
# Normal build
${MAKE} Q= HOST=${HOST} VARIANT=${VARIANT}