Improved the "test" target in the Makefile file to make the cleaning of the docker image optional.
This commit is contained in:
@@ -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 ---
|
||||||
|
|||||||
Reference in New Issue
Block a user