docs-ci: prebuild cli bin with output to appease TravisCI hang check (#22884)

(cherry picked from commit 2fda90e414)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2022-02-02 09:00:48 +00:00
committed by GitHub
parent 04281734e5
commit 4706790c20

View File

@ -9,6 +9,9 @@ source ../ci/rust-version.sh stable
: "${rust_stable:=}" # Pacify shellcheck
# pre-build with output enabled to appease Travis CI's hang check
"$cargo" build -p solana-cli
usage=$("$cargo" stable -q run -p solana-cli -- -C ~/.foo --help | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')
out=${1:-src/cli/usage.md}