X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2944dd6d514383df2c7c8064a37e14a57c69845f..916ec66d0caeeb37983043810bea22e0bc41751f:/build/run-build-test-packages-one-target.sh diff --git a/build/run-build-test-packages-one-target.sh b/build/run-build-test-packages-one-target.sh index b98a4c0a7e..d75e2785ec 100755 --- a/build/run-build-test-packages-one-target.sh +++ b/build/run-build-test-packages-one-target.sh @@ -10,10 +10,12 @@ Syntax: WORKSPACE=/path/to/arvados $(basename $0) [options] --target - Distribution to build packages for (default: debian8) + Distribution to build packages for (default: debian9) --upload If the build and test steps are successful, upload the packages to a remote apt repository (default: false) +--debug + Output debug information (default: false) --rc Optional Parameter to build Release Candidate --build-version @@ -42,15 +44,16 @@ if ! [[ -d "$WORKSPACE" ]]; then fi PARSEDOPTS=$(getopt --name "$0" --longoptions \ - help,upload,rc,target:,build-version: \ + help,debug,upload,rc,target:,build-version: \ -- "" "$@") if [ $? -ne 0 ]; then exit 1 fi -TARGET=debian8 +TARGET=debian9 UPLOAD=0 RC=0 +DEBUG= declare -a build_args=() @@ -65,6 +68,9 @@ while [ $# -gt 0 ]; do --target) TARGET="$2"; shift ;; + --debug) + DEBUG=" --debug" + ;; --upload) UPLOAD=1 ;; @@ -99,7 +105,7 @@ COLUMNS=80 title "Start build packages" timer_reset -$WORKSPACE/build/run-build-packages-one-target.sh "${build_args[@]}" +$WORKSPACE/build/run-build-packages-one-target.sh "${build_args[@]}"$DEBUG checkexit $? "build packages" title "End of build packages (`timer`)" @@ -108,7 +114,7 @@ title "Start test packages" timer_reset if [ ${#failures[@]} -eq 0 ]; then - $WORKSPACE/build/run-build-packages-one-target.sh "${build_args[@]}" --test-packages + $WORKSPACE/build/run-build-packages-one-target.sh "${build_args[@]}" --test-packages$DEBUG else echo "Skipping package upload, there were errors building the packages" fi @@ -135,4 +141,4 @@ if [[ "$UPLOAD" != 0 ]]; then title "End of upload packages (`timer`)" fi -exit_cleanly \ No newline at end of file +exit_cleanly