Merge pull request #311 from fitzgen/faster-mdbook-ci

ci: Cache mdbook installs to reduce CI build time
This commit is contained in:
R. Andrew Ohana 2018-06-25 12:01:26 -07:00 committed by GitHub
commit 09cf02d41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,14 @@ matrix:
# Build the guide.
- rust: stable
script: (cd guide && cargo install mdbook --vers "^0.1.0" && mdbook build)
cache:
- cargo
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
- cargo install-update -a
script:
- (cd guide && mdbook build)
deploy:
provider: pages
skip-cleanup: true