include .cargo into travis cache and trigger cargo update before building

This commit is contained in:
Ding Xiang Fei
2018-06-25 17:19:37 +08:00
committed by Romain Ruetschi
parent fd50da5c35
commit 2732321faf

View File

@ -1,6 +1,7 @@
language: rust
cache:
directories:
- $HOME/.cargo
- $HOME/protobuf
- $TRAVIS_BUILD_DIR/target
@ -68,6 +69,7 @@ env:
- RUSTFLAGS="-C link-dead-code"
script:
- cargo update
- cargo build --verbose --all-features
- cargo test --verbose --all-features
- cargo doc --verbose --all-features --no-deps