projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Readjust arvbox GEM_HOME to ~/.gem to avoid stepping on base image gems
[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 1c8296dfca354f2feb2fb577d1aece345e82cbef..e36c4e88c0d0bf146ac88a9d12587ef03b9a960e 100755
(executable)
--- a/
build/run-build-test-packages-one-target.sh
+++ b/
build/run-build-test-packages-one-target.sh
@@
-11,6
+11,10
@@
Syntax:
--target <target>
Distribution to build packages for (default: debian10)
--target <target>
Distribution to build packages for (default: debian10)
+--only-build <package>
+ Build only a specific package (or ONLY_BUILD from environment)
+--arch <arch>
+ Build a specific architecture (or ARCH from environment, defaults to native architecture)
--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)
@@
-44,7
+48,7
@@
if ! [[ -d "$WORKSPACE" ]]; then
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
- help,debug,upload,rc,target:,build-version: \
+ help,debug,upload,rc,target:,
only-build:,arch:,
build-version: \
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
@@
-68,6
+72,12
@@
while [ $# -gt 0 ]; do
--target)
TARGET="$2"; shift
;;
--target)
TARGET="$2"; shift
;;
+ --only-build)
+ ONLY_BUILD="$2"; shift
+ ;;
+ --arch)
+ ARCH="$2"; shift
+ ;;
--debug)
DEBUG=" --debug"
;;
--debug)
DEBUG=" --debug"
;;
@@
-93,6
+103,14
@@
done
build_args+=(--target "$TARGET")
build_args+=(--target "$TARGET")
+if [[ -n "$ONLY_BUILD" ]]; then
+ build_args+=(--only-build "$ONLY_BUILD")
+fi
+
+if [[ -n "$ARCH" ]]; then
+ build_args+=(--arch "$ARCH")
+fi
+
exit_cleanly() {
trap - INT
report_outcomes
exit_cleanly() {
trap - INT
report_outcomes