-
Notifications
You must be signed in to change notification settings - Fork 242
/
azure-pipelines.yml
43 lines (42 loc) · 1.29 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
jobs:
- job: check
strategy:
matrix:
Linux:
vmImage: ubuntu-latest
MacOS:
vmImage: macOS-10.14
pool:
vmImage: $(vmImage)
continueOnError: $[ ne( variables['Agent.OS'], 'Linux' ) ]
steps:
- template: install-rust.yml@templates
parameters:
rust: nightly
components:
- rustfmt
- bash: |
brew install llvm
brew link --force llvm
echo "##vso[task.setvariable variable=LLVM_CONFIG]/usr/local/opt/llvm/bin/llvm-config"
echo "##vso[task.setvariable variable=PATH]/usr/local/opt/llvm/bin:$PATH"
displayName: Install LLVM (macOS)
condition: eq( variables['Agent.OS'], 'Darwin' )
- bash: cargo check --workspace --all-features --all-targets
displayName: cargo check
- script: cargo fmt --all -- --check
displayName: cargo fmt --check
condition: eq( variables['Agent.OS'], 'Linux' )
continueOnError: true
- script: cargo test -- --test-threads=1
displayName: "cargo test"
condition: eq( variables['Agent.OS'], 'Linux' )
env:
SETTLE_TIME: 2000
resources:
repositories:
- repository: templates
type: github
name: crate-ci/azure-pipelines
ref: refs/heads/v0.3
endpoint: mit-pdos