Skip to content

Commit b1c041b

Browse files
tesujiXAMPPRocky
authored andcommitted
Bump mdbook (rust-lang#321)
* Bump mdbook * Run `cargo update -p mdbook`
1 parent 7568f89 commit b1c041b

File tree

5 files changed

+42
-399
lines changed

5 files changed

+42
-399
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
book
2-
.blacksmith-cache.json
1+
/.blacksmith-cache.json
2+
/book
3+
/target/

.travis.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
language: rust
22
dist: xenial
33

4+
branches:
5+
only:
6+
- master
7+
48
env:
59
RUSTINFRA_DEPLOY_DIR: book
610
RUSTINFRA_CLOUDFRONT_DISTRIBUTION: E12A3GKHZSREHP
@@ -11,15 +15,17 @@ cache:
1115
directories:
1216
# cache: cargo
1317
- $HOME/.cargo
14-
- $TRAVIS_BUILD_DIR/target
18+
- target
19+
before_cache:
20+
- cargo install --debug cargo-cache
21+
- find $HOME/.cargo/bin/ ! -type d -exec strip {} \;
22+
- cargo cache --autoclean
1523

1624
before_script:
17-
# TODO: Installing mdbook from crates.io takes quite a long time. This could
18-
# be reduced by downloading the release from GitHub directly.
19-
- mdbook -V || cargo install mdbook --vers '=0.3.1'
25+
- export CARGO_TARGET_DIR=$(pwd)/target
26+
# NOTE: To increase caching efficiency, keep the same mdbook version
27+
# in blacksmith/Cargo.lock too
28+
- cargo install -v --debug --locked mdbook --vers '=0.3.6'
2029
script:
2130
- mdbook build
2231
- cp website_config.json book/
23-
branches:
24-
only:
25-
- master

0 commit comments

Comments
 (0)