File tree Expand file tree Collapse file tree 5 files changed +42
-399
lines changed Expand file tree Collapse file tree 5 files changed +42
-399
lines changed Original file line number Diff line number Diff line change 1- book
2- .blacksmith-cache.json
1+ /.blacksmith-cache.json
2+ /book
3+ /target /
Original file line number Diff line number Diff line change 11language : rust
22dist : xenial
33
4+ branches :
5+ only :
6+ - master
7+
48env :
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
1624before_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'
2029script :
2130 - mdbook build
2231 - cp website_config.json book/
23- branches :
24- only :
25- - master
You can’t perform that action at this time.
0 commit comments