diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-09-27 10:48:16 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-09-27 10:48:16 +0200 |
commit | df9e5d56ee4d1cada79356af26f94e9f59559428 (patch) | |
tree | fdd2996520a7c82702051e09c1bad5fbb7d2b946 /.travis.yml | |
parent | c791977aab6eb94520cf299fb05a8355da10718c (diff) |
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>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 15 |
1 files changed, 12 insertions, 3 deletions
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 |