Skip to content

Commit 09cf02d

Browse files
authored
Merge pull request #311 from fitzgen/faster-mdbook-ci
ci: Cache mdbook installs to reduce CI build time
2 parents d28d81f + 5b86ee0 commit 09cf02d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ matrix:
6969
7070
# Build the guide.
7171
- rust: stable
72-
script: (cd guide && cargo install mdbook --vers "^0.1.0" && mdbook build)
72+
cache:
73+
- cargo
74+
before_script:
75+
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
76+
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
77+
- cargo install-update -a
78+
script:
79+
- (cd guide && mdbook build)
7380
deploy:
7481
provider: pages
7582
skip-cleanup: true

0 commit comments

Comments
 (0)