|
|
@ -32,18 +32,27 @@ jobs: |
|
|
|
displayName: Query rust and cargo versions |
|
|
|
displayName: Query rust and cargo versions |
|
|
|
- script: cargo build |
|
|
|
- script: cargo build |
|
|
|
displayName: Build |
|
|
|
displayName: Build |
|
|
|
|
|
|
|
- script: | |
|
|
|
|
|
|
|
cargo test --all --verbose |
|
|
|
|
|
|
|
cargo test --release --all --verbose |
|
|
|
|
|
|
|
displayName: Test |
|
|
|
# Linux and macOS w/nightly toolchain. |
|
|
|
# Linux and macOS w/nightly toolchain. |
|
|
|
# Ideally we'd only run the script for the nightly toolchain, but I can't |
|
|
|
# Ideally we'd only run the script for the nightly toolchain, but I can't |
|
|
|
# figure out how to determine that within the Azure Pipelines conditional. |
|
|
|
# figure out how to determine that within the Azure Pipelines conditional. |
|
|
|
- ${{ if ne(parameters.name, 'Windows') }}: |
|
|
|
- ${{ if ne(parameters.name, 'Windows') }}: |
|
|
|
- script: | |
|
|
|
- script: | |
|
|
|
if [ "$RUSTUP_TOOLCHAIN" = 'nightly' ] |
|
|
|
export RUST_BACKTRACE=1 |
|
|
|
then cargo test |
|
|
|
if [ "$RUSTUP_TOOLCHAIN" = "nightly" ] |
|
|
|
|
|
|
|
then cargo bench --all --verbose; |
|
|
|
fi |
|
|
|
fi |
|
|
|
displayName: Test |
|
|
|
displayName: Bench |
|
|
|
# Windows w/nightly toolchain. |
|
|
|
# Windows w/nightly toolchain. |
|
|
|
# Ideally we'd only run the script for the nightly toolchain, but I can't |
|
|
|
# Ideally we'd only run the script for the nightly toolchain, but I can't |
|
|
|
# figure out how to determine that within the Azure Pipelines conditional. |
|
|
|
# figure out how to determine that within the Azure Pipelines conditional. |
|
|
|
- ${{ if eq(parameters.name, 'Windows') }}: |
|
|
|
- ${{ if eq(parameters.name, 'Windows') }}: |
|
|
|
- script: if "%RUSTUP_TOOLCHAIN%" == "nightly" cargo test |
|
|
|
- script: | |
|
|
|
displayName: Test |
|
|
|
SET RUST_BACKTRACE=1 |
|
|
|
|
|
|
|
if "%RUSTUP_TOOLCHAIN%" == "nightly" ( |
|
|
|
|
|
|
|
cargo bench --all --verbose |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
displayName: Bench |
|
|
|