X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9bf2ba202652163937d79341e855910f8c330d05..e4b1a161bdc5a95b9dfd53a3b74bfa552bbc0f18:/build/run-build-packages-python-and-ruby.sh diff --git a/build/run-build-packages-python-and-ruby.sh b/build/run-build-packages-python-and-ruby.sh index 8d593ac3c7..f9b61179ca 100755 --- a/build/run-build-packages-python-and-ruby.sh +++ b/build/run-build-packages-python-and-ruby.sh @@ -1,9 +1,12 @@ #!/bin/bash +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 COLUMNS=80 . `dirname "$(readlink -f "$0")"`/run-library.sh -#. `dirname "$(readlink -f "$0")"`/libcloud-pin +#. `dirname "$(readlink -f "$0")"`/libcloud-pin.sh read -rd "\000" helpmessage < 0 ]]; then + echo `pwd` + fi handle_python_package checkexit $? "$package_name python package build" @@ -114,9 +118,6 @@ if [[ "$DEBUG" != 0 ]]; then DASHQ_UNLESS_DEBUG= fi -EASY_INSTALL2=$(find_easy_install -$PYTHON2_VERSION "") -EASY_INSTALL3=$(find_easy_install -$PYTHON3_VERSION 3) - RUN_BUILD_PACKAGES_PATH="`dirname \"$0\"`" RUN_BUILD_PACKAGES_PATH="`( cd \"$RUN_BUILD_PACKAGES_PATH\" && pwd )`" # absolutized and normalized if [ -z "$RUN_BUILD_PACKAGES_PATH" ] ; then @@ -140,6 +141,7 @@ fi chmod o+r "$WORKSPACE" -R # More cleanup - make sure all executables that we'll package are 755 +cd "$WORKSPACE" find -type d -name 'bin' |xargs -I {} find {} -type f |xargs -I {} chmod 755 {} # Now fix our umask to something better suited to building and publishing @@ -148,8 +150,6 @@ umask 0022 debug_echo "umask is" `umask` -FPM_GEM_PREFIX=$($GEM environment gemdir) - gem_wrapper arvados "$WORKSPACE/sdk/ruby" gem_wrapper arvados-cli "$WORKSPACE/sdk/cli" gem_wrapper arvados-login-sync "$WORKSPACE/services/login-sync" @@ -159,8 +159,8 @@ if [ ${#failures[@]} -ne 0 ]; then GEM_BUILD_FAILURES=${#failures[@]} fi -python_wrapper arvados-pam "$WORKSPACE/sdk/pam" python_wrapper arvados-python-client "$WORKSPACE/sdk/python" +python_wrapper arvados-pam "$WORKSPACE/sdk/pam" python_wrapper arvados-cwl-runner "$WORKSPACE/sdk/cwl" python_wrapper arvados_fuse "$WORKSPACE/services/fuse" python_wrapper arvados-node-manager "$WORKSPACE/services/nodemanager" @@ -171,11 +171,22 @@ if [ $((${#failures[@]} - $GEM_BUILD_FAILURES)) -ne 0 ]; then fi if [[ "$UPLOAD" != 0 ]]; then + + if [[ $DEBUG > 0 ]]; then + EXTRA_UPLOAD_FLAGS=" --verbose" + else + EXTRA_UPLOAD_FLAGS="" + fi + + if [[ ! -e "$WORKSPACE/packages" ]]; then + mkdir -p "$WORKSPACE/packages" + fi + title "Start upload python packages" timer_reset - if [ "$GEM_BUILD_FAILURES" -eq 0 ]; then - /usr/local/arvados-dev/jenkins/run_upload_packages.py --workspace $WORKSPACE python + if [ "$PYTHON_BUILD_FAILURES" -eq 0 ]; then + /usr/local/arvados-dev/jenkins/run_upload_packages.py $EXTRA_UPLOAD_FLAGS --workspace $WORKSPACE python else echo "Skipping python packages upload, there were errors building the packages" fi @@ -185,8 +196,8 @@ if [[ "$UPLOAD" != 0 ]]; then title "Start upload ruby gems" timer_reset - if [ "$PYTHON_BUILD_FAILURES" -eq 0 ]; then - /usr/local/arvados-dev/jenkins/run_upload_packages.py --workspace $WORKSPACE gems + if [ "$GEM_BUILD_FAILURES" -eq 0 ]; then + /usr/local/arvados-dev/jenkins/run_upload_packages.py $EXTRA_UPLOAD_FLAGS --workspace $WORKSPACE gems else echo "Skipping ruby gem upload, there were errors building the packages" fi