Files
LinkTitles/Makefile
Daniel Kraus af4b94ebf7 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.
2021-03-31 19:43:11 +02:00

12 lines
407 B
Makefile

.PHONY: test
test:
# With MW version 1.34, there is one test that is expected to fail
# 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 -v `pwd`:/var/www/html/extensions/LinkTitles --rm bovender/linktitles
build-test-container:
docker build -t bovender/linktitles .