Add cargo doc and apply cargo fmt to stable only
This commit is contained in:
@@ -38,10 +38,6 @@ jobs:
|
|||||||
rustc --version
|
rustc --version
|
||||||
displayName: Install rust (Win)
|
displayName: Install rust (Win)
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
- script: |
|
|
||||||
rustup component add --toolchain stable rustfmt-preview
|
|
||||||
rustup component list --toolchain stable
|
|
||||||
displayName: Add rustfmt
|
|
||||||
- script: |
|
- script: |
|
||||||
powershell -Command "$ProgressPreference = 'SilentlyContinue'; iwr -outf %TEMP%\LLVM-8.0.0-win64.exe https://rust-lang-ci2.s3.amazonaws.com/rust-ci-mirror/LLVM-8.0.0-win64.exe"
|
powershell -Command "$ProgressPreference = 'SilentlyContinue'; iwr -outf %TEMP%\LLVM-8.0.0-win64.exe https://rust-lang-ci2.s3.amazonaws.com/rust-ci-mirror/LLVM-8.0.0-win64.exe"
|
||||||
%TEMP%\LLVM-8.0.0-win64.exe /S /NCRC
|
%TEMP%\LLVM-8.0.0-win64.exe /S /NCRC
|
||||||
@@ -49,7 +45,11 @@ jobs:
|
|||||||
displayName: Install clang (Win)
|
displayName: Install clang (Win)
|
||||||
- script: cargo fetch
|
- script: cargo fetch
|
||||||
displayName: Fetch cargo dependencies
|
displayName: Fetch cargo dependencies
|
||||||
- script: cargo +stable fmt --all -- --check
|
- script: |
|
||||||
|
rustup component add rustfmt
|
||||||
|
rustup component list
|
||||||
|
cargo fmt --all -- --check
|
||||||
|
condition: eq( variables['rustup_toolchain'], 'stable' )
|
||||||
displayName: Check formatting
|
displayName: Check formatting
|
||||||
- script: cargo build --release
|
- script: cargo build --release
|
||||||
displayName: Cargo build release
|
displayName: Cargo build release
|
||||||
@@ -57,4 +57,6 @@ jobs:
|
|||||||
displayName: Cargo build
|
displayName: Cargo build
|
||||||
- bash: RUST_BACKTRACE=1 cargo test --all
|
- bash: RUST_BACKTRACE=1 cargo test --all
|
||||||
displayName: Cargo test
|
displayName: Cargo test
|
||||||
|
- script: cargo doc
|
||||||
|
condition: eq(variables['Agent.OS'], 'Darwin')
|
||||||
|
displayName: Cargo doc
|
||||||
|
|||||||
Reference in New Issue
Block a user