bin/brew: set CI variable.
It's currently unset on Azure Pipelines and Jenkins so let's set it here for consistency across our ecosystem.
This commit is contained in:
		
							parent
							
								
									9141b1509b
								
							
						
					
					
						commit
						e5b8936893
					
				
							
								
								
									
										6
									
								
								bin/brew
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								bin/brew
									
									
									
									
									
								
							@ -65,6 +65,12 @@ do
 | 
			
		||||
  export "$VAR_NEW"="${!VAR}"
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
# Set CI variable for Azure Pipelines, Jenkins.
 | 
			
		||||
if [[ -n "$TF_BUILD" || -n "$JENKINS_HOME" ]]
 | 
			
		||||
then
 | 
			
		||||
  export CI="1"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# test-bot does environment filtering itself
 | 
			
		||||
if [[ -z "$HOMEBREW_NO_ENV_FILTERING" && "$1" != "test-bot" ]]
 | 
			
		||||
then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user