Skip to content

Commit 6ec58d7

Browse files
committed
ci: Tweak cache and before_cache steps
1 parent dd85efd commit 6ec58d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,20 @@ matrix:
1818
env:
1919
- PYTHON_VERSION=2.7.15
2020

21+
before_cache:
22+
# Cleanup to avoid the cache to grow indefinitely as new package versions are released
23+
# see https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
24+
- brew cleanup
25+
2126
cache:
2227
directories:
28+
# Cache downloaded bottles
29+
- $HOME/Library/Caches/Homebrew
30+
# pyenv
31+
- $HOME/.pyenv_cache
2332
- $HOME/.pyenv/versions/3.7.8
2433
- $HOME/.pyenv/versions/2.7.15
34+
# scikit-ci-addons
2535
- $HOME/downloads
2636

2737
before_install:

0 commit comments

Comments
 (0)