diff --git a/.travis.yml b/.travis.yml index 9664ed9c..d6330455 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,16 @@ language: rust -env: RUSTFLAGS="-D warnings" +env: + - RUSTFLAGS="-D warnings" + +# Cache the whole `~/.cargo` directory to keep `~/cargo/.crates.toml`. +cache: + directories: + - /home/travis/.cargo + +# Don't cache the cargo registry because it's too big. +before_cache: + - rm -rf /home/travis/.cargo/registry matrix: fast_finish: true