mirror of
				https://github.com/dokku/buildpack-nginx.git
				synced 2025-10-30 19:46:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			581 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			581 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| shellcheck:
 | |
| ifeq ($(shell shellcheck > /dev/null 2>&1 ; echo $$?),127)
 | |
| ifeq ($(shell uname),Darwin)
 | |
| 	brew install shellcheck
 | |
| else
 | |
| 	sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse'
 | |
| 	sudo apt-get update -qq && sudo apt-get install -qq -y shellcheck
 | |
| endif
 | |
| endif
 | |
| 
 | |
| ci-dependencies: shellcheck
 | |
| 
 | |
| lint:
 | |
| 	@echo linting...
 | |
| 	@$(QUIET) find ./ -maxdepth 2 -not -path '*/\.*' | xargs file | egrep "shell|bash" | awk '{ print $$1 }' | sed 's/://g' | xargs shellcheck -e SC2069
 | |
| 
 | |
| setup:
 | |
| 	$(MAKE) ci-dependencies
 | |
| 
 | |
| test: setup lint
 |