Add cargo doc and apply cargo fmt to stable only
This commit is contained in:
@@ -38,10 +38,6 @@ jobs:
|
||||
rustc --version
|
||||
displayName: Install rust (Win)
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
- script: |
|
||||
rustup component add --toolchain stable rustfmt-preview
|
||||
rustup component list --toolchain stable
|
||||
displayName: Add rustfmt
|
||||
- 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"
|
||||
%TEMP%\LLVM-8.0.0-win64.exe /S /NCRC
|
||||
@@ -49,7 +45,11 @@ jobs:
|
||||
displayName: Install clang (Win)
|
||||
- script: cargo fetch
|
||||
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
|
||||
- script: cargo build --release
|
||||
displayName: Cargo build release
|
||||
@@ -57,4 +57,6 @@ jobs:
|
||||
displayName: Cargo build
|
||||
- bash: RUST_BACKTRACE=1 cargo test --all
|
||||
displayName: Cargo test
|
||||
|
||||
- script: cargo doc
|
||||
condition: eq(variables['Agent.OS'], 'Darwin')
|
||||
displayName: Cargo doc
|
||||
|
||||
Reference in New Issue
Block a user