travis: Include cargo registry when cache

This reduces the crates downloading time upto 30 seconds
on fast network.
This commit is contained in:
Lzu Tao 2019-06-28 11:07:54 +07:00
parent 00b3d9cf86
commit 1ce1401263

View file

@ -4,8 +4,6 @@ cache:
directories:
- "$HOME/.cargo"
- "$HOME/.cache/sccache"
before_cache:
- rm -rf "$HOME/.cargo/registry"
env:
global: