X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/640e63a9968114bb300e7e7acb2a71662e53f576..afec9ddba0b865918815ca3345278decc1fc6697:/build/run-library.sh diff --git a/build/run-library.sh b/build/run-library.sh index b0d4daa722..fa2be6ac7a 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -492,7 +492,8 @@ handle_rails_package() { cd "$srcdir" mkdir -p tmp git rev-parse HEAD >git-commit.version - bundle package --all + bundle config set cache_all true + bundle package ) if [[ 0 != "$?" ]] || ! cd "$WORKSPACE/packages/$TARGET"; then echo "ERROR: $pkgname package prep failed" >&2 @@ -578,12 +579,12 @@ handle_workbench () { # Build the workbench server package test_rails_package_presence arvados-workbench "$WORKSPACE/apps/workbench" if [[ "$?" == "0" ]] ; then + calculate_go_package_version arvados_server_version cmd/arvados-server + arvados_server_iteration=$(default_iteration "arvados-server" "$arvados_server_version" "go") + ( set -e - calculate_go_package_version arvados_server_version cmd/arvados-server - arvados_server_iteration=$(default_iteration "arvados-server" "$arvados_server_version" "go") - # The workbench package has a build-time dependency on the arvados-server # package for config manipulation, so install it first. cd $WORKSPACE/cmd/arvados-server @@ -603,7 +604,8 @@ handle_workbench () { # We need to bundle to be ready even when we build a package without vendor directory # because asset compilation requires it. - bundle install --system >"$STDOUT_IF_DEBUG" + bundle config set --local system 'true' >"$STDOUT_IF_DEBUG" + bundle install >"$STDOUT_IF_DEBUG" # clear the tmp directory; the asset generation step will recreate tmp/cache/assets, # and we want that in the package, so it's easier to not exclude the tmp directory @@ -787,7 +789,7 @@ fpm_build_virtualenv_worker () { ARVADOS_BUILDING_ITERATION=1 fi - local python=python3 + local python=$PYTHON3_EXECUTABLE pip=pip3 PACKAGE_PREFIX=$PYTHON3_PKG_PREFIX