X Tutup
Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 51e4e64

Browse files
committed
test-bot: clean up on Jenkins before building PR
Wipe everything from the Homebrew prefix except for the `Library/Taps` directory to avoid having to refetch `homebrew/core` every time.
1 parent ef70efa commit 51e4e64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Library/Homebrew/cmd/test-bot.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def diff_formulae(start_revision, end_revision, path, filter)
285285
@url = ENV["ghprbPullLink"]
286286
@hash = nil
287287
test "git", "checkout", "origin/master"
288+
test "git", "clean", "-qxdff", "--exclude=/Library/Taps/"
288289
# Use Travis CI pull-request variables for pull request jobs.
289290
elsif travis_pr
290291
@url = "https://github.com/#{ENV["TRAVIS_REPO_SLUG"]}/pull/#{ENV["TRAVIS_PULL_REQUEST"]}"

0 commit comments

Comments
 (0)
X Tutup