From 396c5a5ff53acd5042600ec72368ec139f9345e5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 11 May 2013 11:35:03 +0100 Subject: add static build capability --- citools/jenkins-build.sh | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/citools/jenkins-build.sh b/citools/jenkins-build.sh index 894ee97..cfed262 100755 --- a/citools/jenkins-build.sh +++ b/citools/jenkins-build.sh @@ -24,9 +24,12 @@ # # This script may be executed by jenkins jobs that use the core buildsystem # -# Usage: jenkins-build.sh [install|test-install|coverage] +# Usage: jenkins-build.sh [install|test-install|coverage|static] # - +# install - build and install +# test-install - build, test and install +# coverage - run coverage +# static - perform a staic anaysis # TARGET must be in the environment and set correctly if [ "x${TARGET}" = "x" ];then @@ -47,10 +50,11 @@ NATIVE_TARGET=$(uname -s) TARGET_TEST= TARGET_INSTALL= TARGET_COVERAGE= +TARGET_STATIC= TARGET_BUILD="release" # change defaults based on build parameter -case $1 in +case "$1" in "install") TARGET_INSTALL=${TARGET} ;; @@ -62,12 +66,31 @@ case $1 in export CCACHE= ;; - "test-install"|*) + "static") + TARGET_STATIC=${TARGET} + TARGET_BUILD="debug" + # need to disable ccache on static builds + export CCACHE= + ;; + + "test-install"|"") # Currently most tests do not work on targets except for Linux # TARGET_TEST=${NATIVE_TARGET} TARGET_TEST="Linux" TARGET_INSTALL=${TARGET} ;; + + *) + cat <