From bd1a6095b3a85da2adef301201b981d797e0fe44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Tue, 29 Aug 2023 06:03:34 +0000 Subject: [PATCH] Merge pull request #569 from carvel-dev/update-optional-build-test Updated test to build binary locally based on variable value --- hack/test-all.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/test-all.sh b/hack/test-all.sh index cc8a5d39f..54b710a2b 100755 --- a/hack/test-all.sh +++ b/hack/test-all.sh @@ -2,7 +2,11 @@ set -e -x -u -./hack/build.sh +# By default it will generate binary of imgpkg to run test. +# export BUILD_BINARY=false to skip binary generation +if [ ${BUILD_BINARY:-true} == true ]; then + ./hack/build.sh +fi export IMGPKG_BINARY="$PWD/imgpkg${IMGPKG_BINARY_EXT-}"