Add an ID into the Makefile so running tests locally will use the most up to date Docker image.
This commit is contained in:
parent
02e42feeaa
commit
a2b7bbc8f2
3
Makefile
3
Makefile
@ -1,8 +1,9 @@
|
|||||||
IMAGE ?= w0rp/ale
|
IMAGE ?= w0rp/ale
|
||||||
|
CURRENT_IMAGE_ID = 107e4efc4267
|
||||||
DOCKER_FLAGS = --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)"
|
DOCKER_FLAGS = --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)"
|
||||||
|
|
||||||
test-setup:
|
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
|
test: test-setup
|
||||||
@:; \
|
@:; \
|
||||||
|
Loading…
Reference in New Issue
Block a user