jobs: - job: check_formatting displayName: Check formatting pool: vmImage: ubuntu-16.04 steps: - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y $HOME/.cargo/bin/rustup component add rustfmt displayName: Install stable Rust - script: | $HOME/.cargo/bin/cargo fmt -- --check displayName: Run rustfmt - job: Linux pool: vmImage: ubuntu-16.04 strategy: matrix: minimum_supported_version: rustup_toolchain: 1.32.0 steps: - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" displayName: Install rust - script: | rustc -Vv cargo -V displayName: Query rust and cargo versions - script: cargo test --verbose --all-features displayName: Run tests