Improved the "test" target in the Makefile file to make the cleaning of the docker image optional.

This commit is contained in:
Javier Cicchelli 2023-04-28 19:03:33 +02:00
parent 847c2afc44
commit 9965deb2a8

View File

@ -50,10 +50,12 @@ ifeq ($(docker),yes)
--workdir ${DOCKER_VOLUME_TARGET} \ --workdir ${DOCKER_VOLUME_TARGET} \
--platform ${platform} \ --platform ${platform} \
${DOCKER_IMAGE_NAME}:${tag} \ ${DOCKER_IMAGE_NAME}:${tag} \
swift test --parallel swift test --configuration ${config}
@docker rmi ${DOCKER_IMAGE_NAME}:${tag} ifeq ($(clean),yes)
@docker rmi ${DOCKER_IMAGE_NAME}:${tag}
endif
else else
@swift test --parallel @swift test --configuration ${config}
endif endif
# --- HOUSE-KEEPING --- # --- HOUSE-KEEPING ---