build: cache .cargo/bin only

pull/170/head
Lzu Tao 6 years ago
parent 6810ad4060
commit 7c1607a50f

@ -1,13 +1,15 @@
language: shell
cache: cargo
cache:
directories:
- "$HOME/.cargo/bin"
before_install:
- curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
- export PATH="$HOME/.cargo/bin:$PATH"
before_script:
- (cargo install mdbook --force || true)
install:
- cargo install -Z install-upgrade mdbook
script:
- mdbook test

Loading…
Cancel
Save