From 2ed94c2dd3adf8bbf903302372f05b7d7e604616 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Fri, 24 Jan 2025 16:29:31 +0200 Subject: [PATCH] CI: Use a syntax that makes the script file path relative --- .buildkite/commands/lint.sh | 2 +- .buildkite/commands/prototype-build.sh | 2 +- .buildkite/commands/run-instrumented-tests.sh | 2 +- .buildkite/commands/run-unit-tests.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.buildkite/commands/lint.sh b/.buildkite/commands/lint.sh index 4b9590ec5cb..4e68a7857e0 100755 --- a/.buildkite/commands/lint.sh +++ b/.buildkite/commands/lint.sh @@ -1,6 +1,6 @@ #!/bin/bash -u -.buildkite/commands/restore-cache.sh +"$(dirname "${BASH_SOURCE[0]}")/restore-cache.sh" echo "--- 🧹 Linting" ./gradlew :WooCommerce:lintJalapenoDebug diff --git a/.buildkite/commands/prototype-build.sh b/.buildkite/commands/prototype-build.sh index 5f91ec44302..ad9b8f7cf19 100755 --- a/.buildkite/commands/prototype-build.sh +++ b/.buildkite/commands/prototype-build.sh @@ -1,6 +1,6 @@ #!/bin/bash -eu -.buildkite/commands/restore-cache.sh +"$(dirname "${BASH_SOURCE[0]}")/restore-cache.sh" APP_TO_BUILD="${1?You need to specify the app to build, WooCommerce or WooCommerce-Wear}" diff --git a/.buildkite/commands/run-instrumented-tests.sh b/.buildkite/commands/run-instrumented-tests.sh index 66ebce299e1..aba1ddde877 100755 --- a/.buildkite/commands/run-instrumented-tests.sh +++ b/.buildkite/commands/run-instrumented-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -eu -.buildkite/commands/restore-cache.sh +"$(dirname "${BASH_SOURCE[0]}")/restore-cache.sh" echo "--- :rubygems: Setting up Gems" install_gems diff --git a/.buildkite/commands/run-unit-tests.sh b/.buildkite/commands/run-unit-tests.sh index 6d2fa7bc21c..4e3156d36fc 100755 --- a/.buildkite/commands/run-unit-tests.sh +++ b/.buildkite/commands/run-unit-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -eu -.buildkite/commands/restore-cache.sh +"$(dirname "${BASH_SOURCE[0]}")/restore-cache.sh" echo "--- 🧪 Testing" set +e