X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16f704326f44fd1e5e5e60b936c9b5895d6a6ff8..5ad819e0aa69a8ea453abe18a8e00aa93daa90a2:/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..8539ec4f0a 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: debian10) --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=debian10 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