X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/47a5c66948792602f657e5e1157bfd172d23c546..e1fd558686c78d6edfd460b7531ec9b559299889:/build/run-build-packages-one-target.sh diff --git a/build/run-build-packages-one-target.sh b/build/run-build-packages-one-target.sh index 16c7129d9b..6a1ec9ca6d 100755 --- a/build/run-build-packages-one-target.sh +++ b/build/run-build-packages-one-target.sh @@ -7,7 +7,7 @@ Syntax: WORKSPACE=/path/to/arvados $(basename $0) [options] --target - Distribution to build packages for (default: debian7) + Distribution to build packages for (default: debian8) --command Build command to execute (default: use built-in Docker image command) --test-packages @@ -48,7 +48,7 @@ if [ $? -ne 0 ]; then exit 1 fi -TARGET=debian7 +TARGET=debian8 COMMAND= DEBUG= @@ -72,6 +72,7 @@ while [ $# -gt 0 ]; do ;; --debug) DEBUG=" --debug" + ARVADOS_DEBUG="1" ;; --command) COMMAND="$2"; shift @@ -145,10 +146,6 @@ if test -z "$packages" ; then libarvados-perl" case "$TARGET" in - centos6) - packages="$packages python27-python-arvados-fuse - python27-python-arvados-python-client python27-python-arvados-cwl-runner" - ;; *) packages="$packages python-arvados-fuse python-arvados-python-client python-arvados-cwl-runner" @@ -174,11 +171,14 @@ docker_volume_args=( if [[ -n "$test_packages" ]]; then for p in $packages ; do + if [[ -n "$ONLY_BUILD" ]] && [[ "$p" != "$ONLY_BUILD" ]]; then + continue + fi echo echo "START: $p test on $IMAGE" >&2 if docker run --rm \ "${docker_volume_args[@]}" \ - --env ARVADOS_DEBUG=1 \ + --env ARVADOS_DEBUG=$ARVADOS_DEBUG \ --env "TARGET=$TARGET" \ --env "WORKSPACE=/arvados" \ "$IMAGE" $COMMAND $p @@ -195,7 +195,7 @@ else echo "START: build packages on $IMAGE" >&2 if docker run --rm \ "${docker_volume_args[@]}" \ - --env ARVADOS_DEBUG=1 \ + --env ARVADOS_DEBUG=$ARVADOS_DEBUG \ --env "ONLY_BUILD=$ONLY_BUILD" \ "$IMAGE" $COMMAND then