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.
This commit is contained in:
parent
9f79c05656
commit
75961721ee
@ -285,6 +285,7 @@ module Homebrew
|
||||
@url = ENV["ghprbPullLink"]
|
||||
@hash = nil
|
||||
test "git", "checkout", "origin/master"
|
||||
test "git", "clean", "-qxdff", "--exclude=/Library/Taps/"
|
||||
# Use Travis CI pull-request variables for pull request jobs.
|
||||
elsif travis_pr
|
||||
@url = "https://github.com/#{ENV["TRAVIS_REPO_SLUG"]}/pull/#{ENV["TRAVIS_PULL_REQUEST"]}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user