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