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
fd599255
Commit
fd599255
authored
11 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
brew-test-bot: build --devel if spec exists.
parent
4f3decd5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Contributions/cmd/brew-test-bot.rb
+22
-13
22 additions, 13 deletions
Library/Contributions/cmd/brew-test-bot.rb
with
22 additions
and
13 deletions
Library/Contributions/cmd/brew-test-bot.rb
+
22
−
13
View file @
fd599255
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
# --email: Generate an email subject file.
# --email: Generate an email subject file.
# --no-bottle: Run brew install without --build-bottle
# --no-bottle: Run brew install without --build-bottle
# --HEAD: Run brew install with --HEAD
# --HEAD: Run brew install with --HEAD
# --devel: Run brew install with --devel
require
'formula'
require
'formula'
require
'utils'
require
'utils'
...
@@ -272,23 +271,33 @@ class Test
...
@@ -272,23 +271,33 @@ class Test
install_args
=
'--verbose'
install_args
=
'--verbose'
install_args
<<
' --build-bottle'
unless
ARGV
.
include?
'--no-bottle'
install_args
<<
' --build-bottle'
unless
ARGV
.
include?
'--no-bottle'
install_args
<<
' --HEAD'
if
ARGV
.
include?
'--HEAD'
install_args
<<
' --HEAD'
if
ARGV
.
include?
'--HEAD'
install_args
<<
' --devel'
if
ARGV
.
include?
'--devel'
test
"brew install
#{
install_args
}
#{
formula
}
"
test
"brew install
#{
install_args
}
#{
formula
}
"
install_passed
=
steps
.
last
.
passed?
install_passed
=
steps
.
last
.
passed?
test
"brew audit
#{
formula
}
"
test
"brew audit
#{
formula
}
"
return
unless
install_passed
if
install_passed
unless
ARGV
.
include?
'--no-bottle'
unless
ARGV
.
include?
'--no-bottle'
test
"brew bottle --rb
#{
formula
}
"
,
:puts_output_on_success
=>
true
test
"brew bottle --rb
#{
formula
}
"
,
:puts_output_on_success
=>
true
bottle_step
=
steps
.
last
bottle_step
=
steps
.
last
if
bottle_step
.
passed?
and
bottle_step
.
has_output?
if
bottle_step
.
passed?
and
bottle_step
.
has_output?
bottle_filename
=
bottle_filename
=
bottle_step
.
output
.
gsub
(
/.*(\.\/\S+
#{
bottle_native_regex
}
).*/m
,
'\1'
)
bottle_step
.
output
.
gsub
(
/.*(\.\/\S+
#{
bottle_native_regex
}
).*/m
,
'\1'
)
test
"brew uninstall --force
#{
formula
}
"
test
"brew uninstall --force
#{
formula
}
"
test
"brew install
#{
bottle_filename
}
"
test
"brew install
#{
bottle_filename
}
"
end
end
test
"brew test --verbose
#{
formula
}
"
if
formula_object
.
test_defined?
test
"brew uninstall --force
#{
formula
}
"
end
if
formula_object
.
devel
and
not
ARGV
.
include?
'--HEAD'
test
"brew fetch --devel
#{
formula_fetch_options
}
#{
formula
}
"
test
"brew install --devel --verbose
#{
formula
}
"
devel_install_passed
=
steps
.
last
.
passed?
test
"brew audit --devel
#{
formula
}
"
if
devel_install_passed
test
"brew test --devel --verbose
#{
formula
}
"
if
formula_object
.
test_defined?
test
"brew uninstall --devel --force
#{
formula
}
"
end
end
end
end
test
"brew test --verbose
#{
formula
}
"
if
formula_object
.
test_defined?
test
"brew uninstall --force
#{
formula
}
"
test
"brew uninstall --force
#{
dependencies
}
"
unless
dependencies
.
empty?
test
"brew uninstall --force
#{
dependencies
}
"
unless
dependencies
.
empty?
end
end
...
...
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