projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show initial fuse mount info when starting tests.
[arvados.git]
/
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 b235b1561f593adb66d4d28fb859f5e9b4b5ec70..d75e2785eca730d748f6e59446f6509a233fa1dd 100755
(executable)
--- a/
build/run-build-test-packages-one-target.sh
+++ b/
build/run-build-test-packages-one-target.sh
@@
-1,4
+1,4
@@
-#!/bin/bash
-x
+#!/bin/bash
# Copyright (C) The Arvados Authors. All rights reserved.
#
# SPDX-License-Identifier: AGPL-3.0
# Copyright (C) The Arvados Authors. All rights reserved.
#
# SPDX-License-Identifier: AGPL-3.0
@@
-10,10
+10,14
@@
Syntax:
WORKSPACE=/path/to/arvados $(basename $0) [options]
--target <target>
WORKSPACE=/path/to/arvados $(basename $0) [options]
--target <target>
- Distribution to build packages for (default: debian
8
)
+ Distribution to build packages for (default: debian
9
)
--upload
If the build and test steps are successful, upload the packages
to a remote apt repository (default: false)
--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 <version>
Version to build (default:
\$ARVADOS_BUILDING_VERSION-\$ARVADOS_BUILDING_ITERATION or
--build-version <version>
Version to build (default:
\$ARVADOS_BUILDING_VERSION-\$ARVADOS_BUILDING_ITERATION or
@@
-40,14
+44,16
@@
if ! [[ -d "$WORKSPACE" ]]; then
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
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
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
fi
-TARGET=debian
8
+TARGET=debian
9
UPLOAD=0
UPLOAD=0
+RC=0
+DEBUG=
declare -a build_args=()
declare -a build_args=()
@@
-62,12
+68,15
@@
while [ $# -gt 0 ]; do
--target)
TARGET="$2"; shift
;;
--target)
TARGET="$2"; shift
;;
+ --debug)
+ DEBUG=" --debug"
+ ;;
--upload)
UPLOAD=1
;;
--rc)
RC=1
--upload)
UPLOAD=1
;;
--rc)
RC=1
- ;;
+ ;;
--build-version)
build_args+=("$1" "$2")
shift
--build-version)
build_args+=("$1" "$2")
shift
@@
-96,7
+105,7
@@
COLUMNS=80
title "Start build packages"
timer_reset
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`)"
checkexit $? "build packages"
title "End of build packages (`timer`)"
@@
-105,7
+114,7
@@
title "Start test packages"
timer_reset
if [ ${#failures[@]} -eq 0 ]; then
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
else
echo "Skipping package upload, there were errors building the packages"
fi