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} \
--platform ${platform} \
${DOCKER_IMAGE_NAME}:${tag} \
swift test --parallel
@docker rmi ${DOCKER_IMAGE_NAME}:${tag}
swift test --configuration ${config}
ifeq ($(clean),yes)
@docker rmi ${DOCKER_IMAGE_NAME}:${tag}
endif
else
@swift test --parallel
@swift test --configuration ${config}
endif
# --- HOUSE-KEEPING ---