2019-02-28 12:08:29 -08:00
|
|
|
parameters:
|
|
|
|
crates: []
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: ${{ parameters.name }}
|
|
|
|
displayName: ${{ parameters.displayName }}
|
|
|
|
pool:
|
|
|
|
vmImage: ${{ parameters.vmImage }}
|
|
|
|
steps:
|
|
|
|
- template: azure-install-rust.yml
|
|
|
|
parameters:
|
2019-09-24 15:56:37 -07:00
|
|
|
rust: nightly
|
2019-02-28 12:08:29 -08:00
|
|
|
|
2019-04-26 21:31:25 -07:00
|
|
|
- template: azure-is-release.yml
|
|
|
|
|
|
|
|
- ${{ each crate in parameters.crates }}:
|
|
|
|
- script: cargo test
|
|
|
|
env:
|
|
|
|
CI: 'True'
|
2019-09-23 14:28:14 -07:00
|
|
|
RUSTFLAGS: '-D warnings'
|
2019-04-26 21:31:25 -07:00
|
|
|
displayName: cargo test -p ${{ crate }}
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/${{ crate }}
|
2019-04-27 09:32:40 -07:00
|
|
|
condition: and(succeeded(), ne(variables['isRelease'], 'true'))
|
2019-04-26 21:31:25 -07:00
|
|
|
|
|
|
|
- template: azure-patch-crates.yml
|
|
|
|
|
2019-02-28 12:08:29 -08:00
|
|
|
- ${{ each crate in parameters.crates }}:
|
2019-03-01 09:03:23 -08:00
|
|
|
- script: cargo test
|
2019-04-26 21:31:25 -07:00
|
|
|
env:
|
|
|
|
CI: 'True'
|
2019-09-23 14:28:14 -07:00
|
|
|
RUSTFLAGS: '-D warnings'
|
2019-03-15 10:53:19 -07:00
|
|
|
displayName: cargo test -p ${{ crate }}
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/${{ crate }}
|