aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-02 22:33:57 +0200
committerXu Cheng2016-04-03 12:15:47 +0800
commit75961721ee5401dda6c5411e8a812e1b87b34ab1 (patch)
tree984f601227c509759cb6e03dfc01242ba2d5bf2c /Library
parent9f79c05656a44f926898774c6029025002bcd621 (diff)
downloadbrew-75961721ee5401dda6c5411e8a812e1b87b34ab1.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index a30a85e6a..516fb3756 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -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"]}"