mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	gitlab-ci: enable shellcheck on tests/run-tests
This commit is contained in:
		
							parent
							
								
									9d8c098f74
								
							
						
					
					
						commit
						865673964e
					
				
					 2 changed files with 15 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -215,6 +215,7 @@ lint_format_safety_bandit_checks:
 | 
			
		|||
          python3-nose
 | 
			
		||||
          python3-pip
 | 
			
		||||
          python3-yaml
 | 
			
		||||
          shellcheck
 | 
			
		||||
    - $pip install --break-system-packages bandit safety
 | 
			
		||||
    - export EXITVALUE=0
 | 
			
		||||
    - function set_error() { export EXITVALUE=1; printf "\x1b[31mERROR `history|tail -2|head -1|cut -b 6-500`\x1b[0m\n"; }
 | 
			
		||||
| 
						 | 
				
			
			@ -233,6 +234,8 @@ lint_format_safety_bandit_checks:
 | 
			
		|||
            tests/*.py
 | 
			
		||||
            tests/*.TestCase
 | 
			
		||||
        || set_error
 | 
			
		||||
    - shellcheck --exclude SC2046,SC2090 --severity=warning --color tests/run-tests
 | 
			
		||||
        || set_error
 | 
			
		||||
    - exit $EXITVALUE
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue