espanso/ci/test.yml

21 lines
528 B
YAML
Raw Normal View History

2019-09-21 09:05:57 +00:00
parameters:
rust_version: stable
steps:
- script: |
echo Master check
displayName: Master branch check
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
2019-09-21 09:05:57 +00:00
- template: install-rust.yml
- script: |
2019-09-21 11:46:00 +00:00
set -e
2019-09-21 09:43:17 +00:00
cargo test --release
2019-09-21 11:46:00 +00:00
displayName: Cargo tests on Unix
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
- script: |
cargo test --release
2019-09-21 16:07:13 +00:00
displayName: Cargo tests on Windows
condition: eq(variables['Agent.OS'], 'Windows_NT')