From df9e5d56ee4d1cada79356af26f94e9f59559428 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 27 Sep 2018 10:48:16 +0200 Subject: 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 --- .travis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 83c4d831..3d4aa4b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 -- cgit v1.2.3