makefile: support NO_PREVIEW env var

Following on the previous change, the NO_PREVIEW var can be set to skip
testing with preview functions. We default to testing with preview
functions.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-09-21 09:57:24 -04:00 committed by mergify[bot]
parent ee90ae5906
commit 8835a26c9b
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ ifneq ($(USE_PTRGUARD),)
BUILD_TAGS := $(BUILD_TAGS),ptrguard
endif
ifneq ($(NO_PREVIEW),)
CONTAINER_OPTS += -e NO_PREVIEW=true
else
BUILD_TAGS := $(BUILD_TAGS),ceph_preview
endif
ifneq ($(USE_CACHE),)
GOCACHE_VOLUME := -v test_ceph_go_cache:/go
endif