Update azure-pipelines.yml

This commit is contained in:
Jonathan Turner 2019-12-10 13:09:25 +13:00 committed by GitHub
parent 88f899d341
commit 5cb7df57fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,10 +42,10 @@ steps:
echo "##vso[task.prependpath]$HOME/.cargo/bin" echo "##vso[task.prependpath]$HOME/.cargo/bin"
rustup component add rustfmt --toolchain "stable" rustup component add rustfmt --toolchain "stable"
displayName: Install Rust displayName: Install Rust
- bash: cargo build --all --all-features && RUSTFLAGS="-D warnings" cargo test --all --all-features - bash: RUSTFLAGS="-D warnings" cargo test --all --all-features
condition: eq(variables['style'], 'unflagged') condition: eq(variables['style'], 'unflagged')
displayName: Run tests displayName: Run tests
- bash: cargo build --all --all-features && NUSHELL_ENABLE_ALL_FLAGS=1 RUSTFLAGS="-D warnings" cargo test --all --all-features - bash: NUSHELL_ENABLE_ALL_FLAGS=1 RUSTFLAGS="-D warnings" cargo test --all --all-features
condition: eq(variables['style'], 'canary') condition: eq(variables['style'], 'canary')
displayName: Run tests displayName: Run tests
- bash: cargo fmt --all -- --check - bash: cargo fmt --all -- --check