From b5494642ea862658418d2f9a419b10d1fe25431a Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Fri, 28 Aug 2015 11:37:35 -0400 Subject: [PATCH] Optimization: do not run bundle install for the API server package when we aren't including the vendor directory in the package we're building. No issue # --- jenkins/run-build-packages.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jenkins/run-build-packages.sh b/jenkins/run-build-packages.sh index cd83513..fbd5fa5 100755 --- a/jenkins/run-build-packages.sh +++ b/jenkins/run-build-packages.sh @@ -584,7 +584,9 @@ if [[ ! -d "$WORKSPACE/services/api/tmp" ]]; then fi -bundle install --path vendor/bundle >"$STDOUT_IF_DEBUG" +if [[ "$BUILD_BUNDLE_PACKAGES" != 0 ]]; then + bundle install --path vendor/bundle >"$STDOUT_IF_DEBUG" +fi /usr/bin/git rev-parse HEAD > git-commit.version @@ -630,6 +632,8 @@ if [[ ! -d "$WORKSPACE/apps/workbench/tmp" ]]; then mkdir $WORKSPACE/apps/workbench/tmp fi +# We need to bundle to be ready even when we build a package without vendor directory +# because asset compilation requires it. bundle install --path vendor/bundle >"$STDOUT_IF_DEBUG" /usr/bin/git rev-parse HEAD > git-commit.version -- 2.30.2