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