projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '21059-signup-email' refs #21059
[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 e36c4e88c0d0bf146ac88a9d12587ef03b9a960e..9af95d13d34de9dba9658156762244e540a8a55f 100755
(executable)
--- a/
build/run-build-test-packages-one-target.sh
+++ b/
build/run-build-test-packages-one-target.sh
@@
-15,6
+15,11
@@
Syntax:
Build only a specific package (or ONLY_BUILD from environment)
--arch <arch>
Build a specific architecture (or ARCH from environment, defaults to native architecture)
Build only a specific package (or ONLY_BUILD from environment)
--arch <arch>
Build a specific architecture (or ARCH from environment, defaults to native architecture)
+--force-build
+ Build even if the package exists upstream or if it has already been
+ built locally
+--force-test
+ Test even if there is no new untested package
--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)
@@
-26,6
+31,8
@@
Syntax:
Version to build (default:
\$ARVADOS_BUILDING_VERSION-\$ARVADOS_BUILDING_ITERATION or
0.1.timestamp.commithash)
Version to build (default:
\$ARVADOS_BUILDING_VERSION-\$ARVADOS_BUILDING_ITERATION or
0.1.timestamp.commithash)
+--skip-docker-build
+ Don't try to build Docker images
WORKSPACE=path Path to the Arvados source tree to build packages from
WORKSPACE=path Path to the Arvados source tree to build packages from
@@
-48,7
+55,7
@@
if ! [[ -d "$WORKSPACE" ]]; then
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
- help,debug,upload,rc,target:,
only-build:,arch:,build-version:
\
+ help,debug,upload,rc,target:,
force-test,only-build:,force-build,arch:,build-version:,skip-docker-build
\
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
@@
-72,6
+79,12
@@
while [ $# -gt 0 ]; do
--target)
TARGET="$2"; shift
;;
--target)
TARGET="$2"; shift
;;
+ --force-test)
+ FORCE_TEST=1
+ ;;
+ --force-build)
+ FORCE_BUILD=1
+ ;;
--only-build)
ONLY_BUILD="$2"; shift
;;
--only-build)
ONLY_BUILD="$2"; shift
;;
@@
-91,6
+104,9
@@
while [ $# -gt 0 ]; do
build_args+=("$1" "$2")
shift
;;
build_args+=("$1" "$2")
shift
;;
+ --skip-docker-build)
+ SKIP_DOCKER_BUILD=1
+ ;;
--)
if [ $# -gt 1 ]; then
echo >&2 "$0: unrecognized argument '$2'. Try: $0 --help"
--)
if [ $# -gt 1 ]; then
echo >&2 "$0: unrecognized argument '$2'. Try: $0 --help"
@@
-107,6
+123,18
@@
if [[ -n "$ONLY_BUILD" ]]; then
build_args+=(--only-build "$ONLY_BUILD")
fi
build_args+=(--only-build "$ONLY_BUILD")
fi
+if [[ -n "$FORCE_BUILD" ]]; then
+ build_args+=(--force-build)
+fi
+
+if [[ -n "$FORCE_TEST" ]]; then
+ build_args+=(--force-test)
+fi
+
+if [[ "$SKIP_DOCKER_BUILD" = 1 ]]; then
+ build_args+=(--skip-docker-build)
+fi
+
if [[ -n "$ARCH" ]]; then
build_args+=(--arch "$ARCH")
fi
if [[ -n "$ARCH" ]]; then
build_args+=(--arch "$ARCH")
fi