# Starter pipeline # Start with a minimal pipeline that you can customize to build and deploy your code. # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml trigger: - master pool: vmImage: ubuntu-latest steps: - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" displayName: Install rust - script: | cargo install cargo2junit displayName: Install cargo2junit - script: cargo build --all displayName: Cargo build - script: cargo test -- -Z unstable-options --format json --report-time | cargo2junit > results.xml displayName: Cargo test - task: PublishTestResults@2 inputs: testResultsFormat: 'JUnit' testResultsFiles: '$(System.DefaultWorkingDirectory)/results.xml'