From 6ae00838437a932add676cbb821763d99c99d5af Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 24 Apr 2019 11:41:33 +1000 Subject: [PATCH] Add travis caching. Reference for commands: https://levans.fr/rust_travis_cache.html --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 70b9d21333..f89db54c96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,9 @@ language: rust +cache: + directories: + - /home/travis/.cargo +before_cache: + - rm -rf /home/travis/.cargo/registry before_install: - curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip - unzip protoc-3.4.0-linux-x86_64.zip -d protoc3