From af4b94ebf76a364b260d312ef931853fb3017cf9 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Wed, 31 Mar 2021 19:43:11 +0200 Subject: [PATCH] Mount code directory as a volume into the container. `make test` now uses a volume to mount the directory containing the code into the Docker container that is used for unit-testing. It is no longer necessary to rebuild the container every time the code is changed. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3474e18..08dc675 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ test: # because linking on page save no longer works with MediaWiki 1.32 # and newer. The test that is expected to fail is: # ExtensionTest::testParseOnEdit with data set #0 - docker run -it --rm bovender/linktitles + docker run -it -v `pwd`:/var/www/html/extensions/LinkTitles --rm bovender/linktitles build-test-container: docker build -t bovender/linktitles .