Add travis caching.

Reference for commands: https://levans.fr/rust_travis_cache.html
This commit is contained in:
Paul Hauner 2019-04-24 11:41:33 +10:00
parent 2ee3b05bd3
commit 6ae0083843
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -1,4 +1,9 @@
language: rust language: rust
cache:
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
before_install: before_install:
- curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip - 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 - unzip protoc-3.4.0-linux-x86_64.zip -d protoc3