Stick with just brew cleanup.

This commit is contained in:
Roman Telezhynskyi 2021-09-25 21:01:20 +03:00
parent 7853e00234
commit 15ae6b131f

View File

@ -81,8 +81,8 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- brew cleanup - brew cleanup
# Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9 # Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build # Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
- find /usr/local/Homebrew \! -regex ".+\.git.+" -delete #- find /usr/local/Homebrew \! -regex ".+\.git.+" -delete
- find $HOME/Library/Caches/Homebrew \! -regex ".+\.git.+" -delete #- find $HOME/Library/Caches/Homebrew \! -regex ".+\.git.+" -delete
env: env:
COMPILER: clang COMPILER: clang