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 1
1
language : rust
2
2
dist : xenial
3
3
4
+ branches :
5
+ only :
6
+ - master
7
+
4
8
env :
5
9
RUSTINFRA_DEPLOY_DIR : book
6
10
RUSTINFRA_CLOUDFRONT_DISTRIBUTION : E12A3GKHZSREHP
@@ -11,15 +15,17 @@ cache:
11
15
directories :
12
16
# cache: cargo
13
17
- $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
15
23
16
24
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'
20
29
script :
21
30
- mdbook build
22
31
- cp website_config.json book/
23
- branches :
24
- only :
25
- - master
You can’t perform that action at this time.
0 commit comments