Skip to content

Commit 3d2799b

Browse files
committed
Cache the cargo-tree installation
1 parent de792cb commit 3d2799b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
sudo: false
22
language: rust
3+
cache: cargo
34

45
rust: stable
56

67
before_install:
7-
- cargo install cargo-tree --debug
8+
- |
9+
if ! hash cargo-tree 2>/dev/null; then
10+
cargo install cargo-tree --debug
11+
fi
812
- export PATH=$HOME/.cargo/bin:$PATH
913

1014
script:

0 commit comments

Comments
 (0)