From 6797db66a21047dff5be65d75f3e74814b971d78 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Fri, 2 Aug 2019 12:29:41 +0200 Subject: [PATCH] Add cargo doc and apply cargo fmt to stable only --- .azure-pipelines.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index fc26d99124..1cfcbb2590 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -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