From ee90ae5906905f92fab64df2de744dfc58dee601 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 21 Sep 2021 09:56:03 -0400 Subject: [PATCH] entrypoint: default to running tests with 'ceph_preview' build tag As this script is the heart of our ci and we generally want to test all of go-ceph in our ci, we default to enabling ceph_preview build tag. If we need to test only non-preview functions one can set "NO_PREVIEW" env var to skip setting the build tag. Signed-off-by: John Mulligan --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 8a8868a..0636d58 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -123,6 +123,10 @@ if [ -n "${USE_PTRGUARD}" ]; then BUILD_TAGS+=",ptrguard" fi +if [ -z "${NO_PREVIEW}" ]; then + BUILD_TAGS+=",ceph_preview" +fi + if [ -n "${BUILD_TAGS}" ]; then BUILD_TAGS="-tags ${BUILD_TAGS}" fi