Auto merge of #4676 - mgeisler:ci-caching, r=alexcrichton

Explain why caching is only done on $HOME/.cargo/bin/ in Travis

After having experimented with the Travis and AppVeyor caches, I concluded that they don't really help here: they're large and take a very long time to both download when the build starts and upload after it is finished.
This commit is contained in:
bors 2017-10-31 00:48:46 +00:00
commit 7c33b5c146
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ dist: trusty
git:
depth: 1
# Using 'cache: cargo' to cache target/ and all of $HOME/.cargo/
# doesn't work well: the cache is large and it takes several minutes
# to move it to and from S3. So instead we only cache the mdbook
# binary.
cache:
directories:
- $HOME/.cargo/bin/