parameters: rust_version: stable steps: - script: | echo Master check displayName: Master branch check condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) - template: install-rust.yml - script: | set -e cargo test --release displayName: Cargo tests on Unix condition: not(eq(variables['Agent.OS'], 'Windows_NT')) - script: | cargo test --release displayName: Cargo tests on Windows condition: eq(variables['Agent.OS'], 'Windows_NT')