-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build docs in parallel, only gate their publication on successful exe…
…cution of all tests.
- Loading branch information
Showing
3 changed files
with
54 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
steps: | ||
- script: | | ||
set -e | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly | ||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | ||
displayName: Install nightly Rust for docs | ||
- script: | | ||
cargo doc -p progress-read --no-deps | ||
cargo doc -p volta-fail --no-deps | ||
cargo doc -p archive --no-deps | ||
cargo doc --features cross-platform-docs -p volta-core --no-deps | ||
cargo doc --features cross-platform-docs --no-deps | ||
env: | ||
RUSTDOCFLAGS: --document-private-items | ||
displayName: Generate docs | ||
- script: | | ||
mkdir -p publish | ||
mv target/doc publish/master | ||
echo '<!doctype html><a href="volta">volta</a>' > publish/master/index.html | ||
echo '<!doctype html><a href="master">master</a>' > publish/index.html | ||
displayName: Prep docs for publication | ||
- task: PublishPipelineArtifact@0 | ||
inputs: | ||
artifactName: 'api_docs' | ||
targetPath: 'publish' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters