mirror of
				https://github.com/diocloid/LinkTitles.git
				synced 2025-10-22 05:42:32 +02:00 
			
		
		
		
	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:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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 .
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user