-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
95 lines (90 loc) · 2.91 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
jobs:
- job: style
displayName: Style linting
pool:
vmImage: ubuntu-latest
continueOnError: "true"
steps:
- template: install-rust.yml@templates
parameters:
rust: stable
components:
- rustfmt
- clippy
- script: cargo fmt --all -- --check
displayName: cargo fmt --check
- script: cargo clippy --all -- -D warnings
displayName: cargo clippy
- job: msrv
displayName: "Minimum supported Rust version: 1.51"
dependsOn: []
# This represents the minimum Rust version supported.
# Tests are not run as tests may require newer versions of rust.
pool:
vmImage: ubuntu-latest
continueOnError: "false"
steps:
- template: install-rust.yml@templates
parameters:
rust: 1.51
- script: cargo check --workspace
displayName: cargo check
- script: cargo check --no-default-features --workspace
displayName: cargo check --no-default-features
- script: cargo check --all-features --workspace
displayName: cargo check --all-features
- job: main_linux
displayName: Compile and test Linux
dependsOn: []
pool:
vmImage: ubuntu-latest
continueOnError: "false"
steps:
- template: install-rust.yml@templates
parameters:
rust: 1.51
- script: sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev
displayName: Install depedencies
- script: cargo check --workspace --features simag_networking,repl
displayName: cargo check
- script: cargo check --no-default-features --workspace
displayName: cargo check --no-default-features
- script: cargo test --workspace --features simag_networking,repl
displayName: cargo test
- script: cargo doc --no-deps --workspace
displayName: cargo doc
- job: main_other_os
displayName: "Compile and test - "
dependsOn: []
strategy:
matrix:
MacOS:
vmImage: macOS-10.15
rust: stable
Windows:
vmImage: windows-2019
rust: stable
continueOnError: "false"
steps:
- template: install-rust.yml@templates
parameters:
rust: stable
- script: cargo check --workspace --features simag_networking,repl
displayName: cargo check
- script: cargo check --no-default-features --workspace
displayName: cargo check --no-default-features
- script: cargo test --workspace --features simag_networking,repl
displayName: cargo test
- script: cargo doc --no-deps --workspace
displayName: cargo doc
- template: coverage.yml@templates
parameters:
token: $(CODECOV_TOKEN_SECRET)
args: "--packages simag_core,simag_networking"
resources:
repositories:
- repository: templates
type: github
name: crate-ci/azure-pipelines
ref: refs/heads/v0.4
endpoint: iduartgomez