Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
c925c221
Commit
c925c221
authored
10 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
test-bot: tap before attempting upload.
parent
342b09b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/cmd/test-bot.rb
+13
-14
13 additions, 14 deletions
Library/Homebrew/cmd/test-bot.rb
with
13 additions
and
14 deletions
Library/Homebrew/cmd/test-bot.rb
+
13
−
14
View file @
c925c221
...
...
@@ -170,20 +170,9 @@ module Homebrew
@steps
=
[]
@tap
=
tap
@repository
=
Homebrew
.
homebrew_git_repo
@tap
@repository_requires_tapping
=
!
@repository
.
directory?
url_match
=
argument
.
match
HOMEBREW_PULL_OR_COMMIT_URL_REGEX
# Tap repository if required, this is done before everything else
# because Formula parsing and/or git commit hash lookup depends on it.
if
@tap
if
@repository_requires_tapping
test
"brew"
,
"tap"
,
@tap
else
test
"brew"
,
"tap"
,
"--repair"
end
end
begin
formula
=
Formulary
.
factory
(
argument
)
rescue
FormulaUnavailableError
...
...
@@ -481,8 +470,6 @@ module Homebrew
test
"brew"
,
"cleanup"
end
test
"brew"
,
"untap"
,
@tap
if
@tap
&&
@repository_requires_tapping
FileUtils
.
rm_rf
@brewbot_root
unless
ARGV
.
include?
"--keep-logs"
end
...
...
@@ -582,6 +569,18 @@ module Homebrew
ENV
[
'HOMEBREW_LOGS'
]
=
"
#{
Dir
.
pwd
}
/logs"
end
repository
=
Homebrew
.
homebrew_git_repo
tap
# Tap repository if required, this is done before everything else
# because Formula parsing and/or git commit hash lookup depends on it.
if
tap
if
!
repository
.
directory?
system
"brew"
,
"tap"
,
tap
else
system
"brew"
,
"tap"
,
"--repair"
end
end
if
ARGV
.
include?
'--ci-upload'
jenkins
=
ENV
[
'JENKINS_HOME'
]
job
=
ENV
[
'UPSTREAM_JOB_NAME'
]
...
...
@@ -594,7 +593,7 @@ module Homebrew
ENV
[
"GIT_COMMITTER_NAME"
]
=
"BrewTestBot"
ENV
[
"GIT_COMMITTER_EMAIL"
]
=
"brew-test-bot@googlegroups.com"
ENV
[
"GIT_WORK_TREE"
]
=
Homebrew
.
homebrew_git_repo
tap
ENV
[
"GIT_WORK_TREE"
]
=
repository
ENV
[
"GIT_DIR"
]
=
"
#{
ENV
[
"GIT_WORK_TREE"
]
}
/.git"
pr
=
ENV
[
'UPSTREAM_PULL_REQUEST'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment