Only install mdbook if building the book

This commit is contained in:
James Munns 2019-08-27 16:41:31 +02:00
parent b6c8186846
commit b39c720681

View file

@ -18,7 +18,7 @@ matrix:
before_script:
- rustup component add rustfmt
- (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh)
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
script:
- if ![[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi