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:
parent
c791977aab
commit
df9e5d56ee
1 changed files with 12 additions and 3 deletions
15
.travis.yml
15
.travis.yml
|
@ -18,21 +18,30 @@ matrix:
|
||||||
- language: rust
|
- language: rust
|
||||||
rust: 1.27.2
|
rust: 1.27.2
|
||||||
cache:
|
cache:
|
||||||
cargo: true
|
directories:
|
||||||
|
- /home/travis/.cargo
|
||||||
|
before_cache:
|
||||||
|
- rm -rf /home/travis/.cargo/registry
|
||||||
script:
|
script:
|
||||||
- cargo build --all --all-features -j 1 || exit 1
|
- cargo build --all --all-features -j 1 || exit 1
|
||||||
- cargo test --all --all-features -j 1 || exit 1
|
- cargo test --all --all-features -j 1 || exit 1
|
||||||
- language: rust
|
- language: rust
|
||||||
rust: 1.28.0
|
rust: 1.28.0
|
||||||
cache:
|
cache:
|
||||||
cargo: true
|
directories:
|
||||||
|
- /home/travis/.cargo
|
||||||
|
before_cache:
|
||||||
|
- rm -rf /home/travis/.cargo/registry
|
||||||
script:
|
script:
|
||||||
- cargo build --all --all-features -j 1 || exit 1
|
- cargo build --all --all-features -j 1 || exit 1
|
||||||
- cargo test --all --all-features -j 1 || exit 1
|
- cargo test --all --all-features -j 1 || exit 1
|
||||||
- language: rust
|
- language: rust
|
||||||
rust: stable
|
rust: stable
|
||||||
cache:
|
cache:
|
||||||
cargo: true
|
directories:
|
||||||
|
- /home/travis/.cargo
|
||||||
|
before_cache:
|
||||||
|
- rm -rf /home/travis/.cargo/registry
|
||||||
script:
|
script:
|
||||||
- cargo build --all --all-features -j 1 || exit 1
|
- cargo build --all --all-features -j 1 || exit 1
|
||||||
- cargo test --all --all-features -j 1 || exit 1
|
- cargo test --all --all-features -j 1 || exit 1
|
||||||
|
|
Loading…
Reference in a new issue