Skip to content

Commit 714e173

Browse files
author
Stjepan Glavina
committed
Cache cargo artifacts
1 parent 2c02037 commit 714e173

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.travis.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
language: rust
22

3-
env: RUSTFLAGS="-D warnings"
3+
env:
4+
- RUSTFLAGS="-D warnings"
5+
6+
# Cache the whole `~/.cargo` directory to keep `~/cargo/.crates.toml`.
7+
cache:
8+
directories:
9+
- /home/travis/.cargo
10+
11+
# Don't cache the cargo registry because it's too big.
12+
before_cache:
13+
- rm -rf /home/travis/.cargo/registry
414

515
matrix:
616
fast_finish: true

0 commit comments

Comments
 (0)