diff options
| author | Mike McQuaid | 2013-12-10 21:41:09 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-12-10 21:41:09 +0000 |
| commit | 864521465c0a0e27ea37af8a52200f3b8aced87a (patch) | |
| tree | 6ad08145630c05993f3d56bb040c630e1a4aa7bd /Library | |
| parent | 95087c928806187b02414d98625d84f2f55ca7b0 (diff) | |
| download | homebrew-864521465c0a0e27ea37af8a52200f3b8aced87a.tar.bz2 | |
brew-test-bot: remember to pull the PR.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 919b81ab5..aeb7606c1 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -419,11 +419,17 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload' ARGV << '--verbose' copied = system "cp #{jenkins}/jobs/\"#{job}\"/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.* ." exit unless copied - safe_system "brew bottle --merge --write *.bottle*.rb" - remote = "git@github.com:BrewTestBot/homebrew.git" pr = ENV['UPSTREAM_PULL_REQUEST'] number = ENV['UPSTREAM_BUILD_NUMBER'] + + if ARGV.include? '--ci-pr-upload' + safe_system "brew pull --clean #{pr}" + end + + safe_system "brew bottle --merge --write *.bottle*.rb" + + remote = "git@github.com:BrewTestBot/homebrew.git" tag = pr ? "pr-#{pr}" : "testing-#{number}" safe_system "git push --force #{remote} :refs/tags/#{tag}" |
