Skip to content

Commit c3f6a51

Browse files
bors[bot]Stjepan Glavina
and
Stjepan Glavina
authored
Merge #168
168: Cache cargo artifacts r=yoshuawuyts a=stjepang Supersedes #114 This does not cache `~/.cargo/registry` because it's too big. Co-authored-by: Stjepan Glavina <[email protected]>
2 parents 272f74c + 714e173 commit c3f6a51

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)