mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
ci: do not run "make mod-check" for containerized-tests
An updated CI job will run "make mod-check" in parallel with the full containerized-test and containerized-build targets. This will hopefully reduced the time that is needed for the whole ci/centos/containerized-tests job. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
afd6994e19
commit
cba466c163
11
Makefile
11
Makefile
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
.PHONY: all cephcsi check-env
|
.PHONY: all cephcsi check-env
|
||||||
|
|
||||||
|
CONTAINERIZED?=no
|
||||||
CONTAINER_CMD?=$(shell podman version >/dev/null 2>&1 && echo podman)
|
CONTAINER_CMD?=$(shell podman version >/dev/null 2>&1 && echo podman)
|
||||||
ifeq ($(CONTAINER_CMD),)
|
ifeq ($(CONTAINER_CMD),)
|
||||||
CONTAINER_CMD=$(shell docker version >/dev/null 2>&1 && echo docker)
|
CONTAINER_CMD=$(shell docker version >/dev/null 2>&1 && echo docker)
|
||||||
@ -77,7 +78,13 @@ endif
|
|||||||
all: cephcsi
|
all: cephcsi
|
||||||
|
|
||||||
.PHONY: go-test static-check mod-check go-lint lint-extras gosec commitlint
|
.PHONY: go-test static-check mod-check go-lint lint-extras gosec commitlint
|
||||||
|
ifeq ($(CONTAINERIZED),no)
|
||||||
|
# include mod-check in non-containerized runs
|
||||||
test: go-test static-check mod-check
|
test: go-test static-check mod-check
|
||||||
|
else
|
||||||
|
# exclude mod-check for containerized runs (CI runs it separately)
|
||||||
|
test: go-test static-check
|
||||||
|
endif
|
||||||
static-check: check-env go-lint lint-extras gosec
|
static-check: check-env go-lint lint-extras gosec
|
||||||
|
|
||||||
go-test: TEST_COVERAGE ?= $(shell . $(CURDIR)/build.env ; echo $${TEST_COVERAGE})
|
go-test: TEST_COVERAGE ?= $(shell . $(CURDIR)/build.env ; echo $${TEST_COVERAGE})
|
||||||
@ -164,12 +171,12 @@ run-e2e:
|
|||||||
.PHONY: containerized-build containerized-test
|
.PHONY: containerized-build containerized-test
|
||||||
containerized-build: TARGET = cephcsi
|
containerized-build: TARGET = cephcsi
|
||||||
containerized-build: .container-cmd .devel-container-id
|
containerized-build: .container-cmd .devel-container-id
|
||||||
$(CONTAINER_CMD) run --rm -v $(CURDIR):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):devel make $(TARGET)
|
$(CONTAINER_CMD) run --rm -v $(CURDIR):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):devel make $(TARGET) CONTAINERIZED=yes
|
||||||
|
|
||||||
containerized-test: TARGET = test
|
containerized-test: TARGET = test
|
||||||
containerized-test: REBASE ?= 0
|
containerized-test: REBASE ?= 0
|
||||||
containerized-test: .container-cmd .test-container-id
|
containerized-test: .container-cmd .test-container-id
|
||||||
$(CONTAINER_CMD) run --rm -v $(CURDIR):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):test make $(TARGET) GIT_SINCE=$(GIT_SINCE) REBASE=$(REBASE)
|
$(CONTAINER_CMD) run --rm -v $(CURDIR):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):test make $(TARGET) GIT_SINCE=$(GIT_SINCE) REBASE=$(REBASE) CONTAINERIZED=yes
|
||||||
|
|
||||||
ifeq ($(USE_PULLED_IMAGE),no)
|
ifeq ($(USE_PULLED_IMAGE),no)
|
||||||
# create a (cached) container image with dependencied for building cephcsi
|
# create a (cached) container image with dependencied for building cephcsi
|
||||||
|
Loading…
Reference in New Issue
Block a user