MM-26882: Ensure to start docker containers during test (#15113)

* MM-26882: Ensure to start docker containers during test

This starts up docker containers which can help avoid failures
during a test run if a developers forgets to manually start them.

* Start LDAP if EE build
Этот коммит содержится в:
Agniva De Sarker
2020-07-29 20:21:15 +05:30
коммит произвёл GitHub
родитель c65a0e9f9c
Коммит fb0fa2a726

Просмотреть файл

@@ -128,6 +128,12 @@ ifeq ($(RUN_SERVER_IN_BACKGROUND),true)
RUN_IN_BACKGROUND := &
endif
ifeq ($(BUILD_ENTERPRISE_READY),true)
ifeq (,$(findstring openldap,$(ENABLED_DOCKER_SERVICES)))
ENABLED_DOCKER_SERVICES:=$(ENABLED_DOCKER_SERVICES) openldap
endif
endif
start-docker: ## Starts the docker containers for local development.
ifneq ($(IS_CI),false)
@echo CI Build: skipping docker start
@@ -317,7 +323,7 @@ gomodtidy:
fi;
@rm go.*.orig;
test-server: check-prereqs-enterprise go-junit-report do-cover-file ## Runs tests.
test-server: check-prereqs-enterprise start-docker go-junit-report do-cover-file ## Runs tests.
ifeq ($(BUILD_ENTERPRISE_READY),true)
@echo Running all tests
else