Optimize travis caching for faster builds

According to [0] these new settings might help to optimize build times
on travis.

Lets see what happens.

[0]: https://levans.fr/rust_travis_cache.html

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2018-09-27 10:48:16 +02:00
parent c791977aab
commit df9e5d56ee

View file

@ -18,21 +18,30 @@ matrix:
- language: rust
rust: 1.27.2
cache:
cargo: true
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1
- language: rust
rust: 1.28.0
cache:
cargo: true
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1
- language: rust
rust: stable
cache:
cargo: true
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1