From 714e1739482ea0772b8ece944bcb5c37f703685d Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Mon, 9 Sep 2019 09:26:00 +0200 Subject: [PATCH] Cache cargo artifacts --- .travis.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ff3a53d..569aceb 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