mirror of
				https://github.com/containers/udica
				synced 2025-10-26 16:20:46 +01:00 
			
		
		
		
	Otherwise, all you get in CI is a failure notice w/o any indication as to why. Signed-off-by: Chris Evich <cevich@redhat.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			429 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			429 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| TAG ?= latest
 | |
| IMAGE_NAME ?= udica
 | |
| CONTAINER_CMD ?= podman
 | |
| 
 | |
| .PHONY: install
 | |
| install:
 | |
| 	python3 setup.py install
 | |
| 
 | |
| .PHONY:
 | |
| lint:
 | |
| 	pyflakes udica
 | |
| 
 | |
| .PHONY:
 | |
| format:
 | |
| 	black *.py udica/*.py tests/*.py
 | |
| 
 | |
| .PHONY:
 | |
| format-check:
 | |
| 	black --check --diff *.py udica/*.py tests/*.py
 | |
| 
 | |
| .PHONY: test
 | |
| test: lint format-check
 | |
| 	python3 -m unittest -v tests/test_unit.py
 | |
| 
 | |
| .PHONY: image
 | |
| image:
 | |
| 	$(CONTAINER_CMD) build -f Dockerfile -t $(IMAGE_NAME):$(TAG)
 |