Merge pull request #5549 from MikeMcQuaid/ci-var

bin/brew: set CI variable.
This commit is contained in:
Mike McQuaid 2019-01-17 09:45:05 +00:00 committed by GitHub
commit baf1215b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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