Skip to content

Commit af8ed04

Browse files
szedergitster
authored andcommitted
ci: disable Homebrew's auto cleanup
Lately Homebrew learned to automagically clean up information about outdated packages during other 'brew' commands, which might be useful for the avarage user, but is a waste of time in CI build jobs, because the next build jobs will start from the exact same image containing the same outdated packages anyway. Export HOMEBREW_NO_INSTALL_CLEANUP=1 to disable this auto cleanup feature, shaving off about 20-30s from the time needed to install dependencies in our macOS build jobs on Travis CI. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f2f4715 commit af8ed04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ linux-clang|linux-gcc)
3434
popd
3535
;;
3636
osx-clang|osx-gcc)
37-
export HOMEBREW_NO_AUTO_UPDATE=1
37+
export HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1
3838
# Uncomment this if you want to run perf tests:
3939
# brew install gnu-time
4040
test -z "$BREW_INSTALL_PACKAGES" ||

0 commit comments

Comments
 (0)