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.
This commit is contained in:
Daniel Kraus
2021-03-31 19:43:11 +02:00
parent 8e83dfcf7f
commit af4b94ebf7

View File

@ -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 .