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:
Mike McQuaid 2019-01-17 09:22:50 +00:00
parent 9141b1509b
commit e5b8936893
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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