Add an ID into the Makefile so running tests locally will use the most up to date Docker image.

This commit is contained in:
w0rp 2016-10-18 12:48:45 +01:00
parent 02e42feeaa
commit a2b7bbc8f2
1 changed files with 2 additions and 1 deletions

View File

@ -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
@:; \