From a2b7bbc8f2f0dc777586222374ade95330fcb55f Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 18 Oct 2016 12:48:45 +0100 Subject: [PATCH] Add an ID into the Makefile so running tests locally will use the most up to date Docker image. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e8376de..6c6cdc6 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ IMAGE ?= w0rp/ale +CURRENT_IMAGE_ID = 107e4efc4267 DOCKER_FLAGS = --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)" test-setup: - docker images -q $(IMAGE) || docker pull $(IMAGE) + if [ `docker images -q $(IMAGE)` != $(CURRENT_IMAGE_ID) ]; then docker pull $(IMAGE); fi test: test-setup @:; \