File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,28 @@ language: rust
3
3
env :
4
4
- RUSTFLAGS="-D warnings"
5
5
6
- before_script :
7
- - rustup component add rustfmt
8
-
9
6
matrix :
10
7
fast_finish : true
11
8
include :
12
9
- rust : nightly
13
10
os : linux
14
- env : BUILD_DOCS=1
11
+ env : BUILD_DOCS=1 BUILD_BOOK=1
15
12
- rust : nightly
16
13
os : osx
17
14
osx_image : xcode9.2
18
15
env : BUILD_DOCS=1
19
16
- rust : nightly-x86_64-pc-windows-msvc
20
17
os : windows
21
18
19
+ before_script :
20
+ - rustup component add rustfmt
21
+ - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
22
+ - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
23
+ - cargo install-update -a
24
+
22
25
script :
23
- - cargo check --all --benches --bins --examples --tests
24
- - cargo test --all
26
+ - if ![[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi
27
+ - if [[ -n "$BUILD_BOOK" ]]; then cargo test --all --benches --bins --examples --tests; fi
25
28
- cargo fmt --all -- --check
26
- - if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi
29
+ - if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi
30
+ - if [[ -n "$BUILD_BOOK" ]]; then mdbook build docs && mdbook test -L ./target/debug/deps docs; fi
You can’t perform that action at this time.
0 commit comments