From 78df16b585709c300c2237cc1d4d7069c03212e1 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Mon, 16 Dec 2019 02:31:49 -0500 Subject: [PATCH] Test caching in travis... --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 15d7aaba..42e16c26 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,17 @@ jobs: allow_failures: - rust: nightly +# From https://levans.fr/rust_travis_cache.html +# Need to cache the whole `.cargo` directory to keep .crates.toml for +# cargo-update to work +cache: + directories: + - /home/travis/.cargo + +# But don't cache the cargo registry +before_cache: + - rm -rf /home/travis/.cargo/registry + GH_TOKEN: &GH_TOKEN secure: ckWcEQHz8SekxaAdBNpiT+YF6ST0pJS15lC4MNT1mIzLMgEXpJI/peNwwRf+FGJiyqNtaK5YUAB6cP25w9QZsrwBLmLJ9wcGaHJuPc7XKvpHkEiFwTDaOqrIRmYhvAfjwH5IycnyAlAzsHsPujmhCWQyiW4YSziCOqtByY4ftzchOCh44kWmqf7HI6uSPSFfqHtTdkM21Dgwm+NpYPmwO0wmrEIwCNkN62Fb+Ghk9AqJH67vDLs+mvKQTdDc2X+fDT9sQxTI4dftSGx2JDkivwVfxX3kOroZvIRG6WmEGYyzU6wLYJlfFSg6svofdOZwNC71Byr5gEFLZOCfWrd2P4gF+CMA61PqGQMBAgAMVX4kCMblERyAdTVFKtP+WPOEBoWqsNLdzQhulF+w71MDRBnfDmuQ2TRegobCTvKefp0I3YYLLoKrDNMIvQ9572DcvLME4hzBwnizy8G1UBepqz3oa3R/6Kr8NlYBHnbbUBmzVZW1jZokz3T/c7r2fqC7h6pC8VtUh/e246ROF0k9mCVKKrsfrEZ4UjRL8RmuAQ12CeAa1GsSSwtbbwW2VIX0iVVXo080iGMKZHTTvDIRHkjA3MzPuAZyUruCjp9yQmpbG/cSzR8aJPzIia9+qXp0jmML3Du52qsF8m68gbcOpNS0CHOQY9wmuWhCatmzt2Y=