File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,15 @@ cargo fmt --all -- --check
3535rustup toolchain install stable
3636rustup default stable
3737
38+ # Later on we are going to need to install cargo-deny and mdbook. We kick the
39+ # install jobs off now so that at least some work (e.g. downloading crates) can
40+ # happen in parallel, speeding up the overall process.
41+
42+ cargo_deny_mdbook_tmp=$( mktemp)
43+ ( cargo install --locked cargo-deny ; cargo install --locked mdbook ) \
44+ > " ${cargo_deny_mdbook_tmp} " 2>&1 &
45+ cargo_deny_mdbook_pid=$!
46+
3847cargo test
3948cargo test --release
4049
@@ -89,7 +98,12 @@ cd $root
8998
9099RUSTDOCFLAGS=" -Dwarnings" cargo doc --no-deps
91100
92- which cargo-deny | cargo install cargo-deny || true
93- if [ " X` which cargo-deny` " != " X" ]; then
94- cargo-deny check license
95- fi
101+ # Check licenses.
102+ wait " ${cargo_deny_mdbook_pid} " || ( cat " ${cargo_deny_mdbook_tmp} " && exit 1 )
103+ cargo-deny check license
104+
105+ # Build the docs
106+ cd $root /doc
107+ mdbook build
108+ test -d book
109+ cd ..
You can’t perform that action at this time.
0 commit comments