summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-09-27 10:48:16 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-09-27 10:48:16 +0200
commitdf9e5d56ee4d1cada79356af26f94e9f59559428 (patch)
treefdd2996520a7c82702051e09c1bad5fbb7d2b946 /.travis.yml
parentc791977aab6eb94520cf299fb05a8355da10718c (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.yml15
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