From b39c72068164ca823cf572dcb60499688cb844e3 Mon Sep 17 00:00:00 2001 From: James Munns Date: Tue, 27 Aug 2019 16:41:31 +0200 Subject: [PATCH] Only install mdbook if building the book --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5f9aac5a..024d3729 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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