Skip to content

Commit 9c849fe

Browse files
committed
Auto merge of #4481 - behnam:travis, r=alexcrichton
[travis] Enable cache for $HOME/.cargo This should accelerate the `cargo install mdbook` step under `install`, which is currently called on all linux+nightly setups. https://github.com/rust-lang/cargo/blob/36ddeff03a31f710095cfbe49287503bb60e294d/.travis.yml#L24-L25
2 parents e01fae4 + 0971aac commit 9c849fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ dist: trusty
66
git:
77
depth: 1
88

9+
cache:
10+
directories:
11+
- $HOME/.cargo/bin/
12+
913
matrix:
1014
include:
1115
- env: TARGET=x86_64-unknown-linux-gnu
@@ -22,7 +26,7 @@ matrix:
2226
ALT=i686-unknown-linux-gnu
2327
rust: nightly
2428
install:
25-
- cargo install mdbook
29+
- mdbook --help || cargo install mdbook --force
2630
script:
2731
- cargo test
2832
- cargo doc --no-deps

0 commit comments

Comments
 (0)