This repository was archived by the owner on Mar 20, 2022. It is now read-only.
File tree 4 files changed +23
-1
lines changed
4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ stages:
18
18
displayName : " Quick checks"
19
19
jobs :
20
20
- template : ci/scenarios/check.yml@rust_pipelines
21
+ parameters :
22
+ cargo-check : true
23
+ cargo-check-nigtly : true
24
+ cargo-clippy : true
25
+ rustfmt : true
21
26
22
27
- stage : test
23
28
displayName : " Multi OS native tests"
@@ -27,6 +32,7 @@ stages:
27
32
min_rust_supported : 1.31
28
33
29
34
# This stage allow to easy test your crate using cross project.
35
+ # Supported targets: https://github.com/rust-embedded/cross#supported-targets
30
36
- stage : embedded
31
37
displayName : " Cross check and tests"
32
38
dependsOn :
@@ -73,4 +79,4 @@ stages:
73
79
- template : ci/scenarios/github/release.yml@rust_pipelines
74
80
parameters :
75
81
job_condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
76
- gitHubConnection : PipelinesTemplates
82
+ gitHubConnection : PipelinesTemplates
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ parameters:
4
4
job_displayName : Cargo check # Default displayName
5
5
job_dependsOn : [] # Dependencies to for the job to start
6
6
job_condition : true # Job condition
7
+ job_continueOnError : false # Should other job still run even if this fail
7
8
job_post-steps : [] # Custom steps running after job
8
9
9
10
# global parameters
44
45
displayName : ${{ parameters['job_displayName'] }}
45
46
condition : ${{ parameters['job_condition'] }}
46
47
dependsOn : ${{ parameters['job_dependsOn'] }}
48
+ continueOnError : ${{ parameters['job_continueOnError'] }}
47
49
pool :
48
50
vmImage : ubuntu-16.04
49
51
variables :
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ cargo-clippy : true
3
+ cargo-check : true
4
+ cargo-check-nightly : true
5
+ rustfmt : true
6
+
7
+
1
8
jobs :
2
9
- template : ../jobs/cargo-check.yml
3
10
parameters :
4
11
job_name : check_stable
12
+ job_condition : ${{ parameters['cargo-check'] }}
5
13
job_displayName : Cargo check (stable)
6
14
all : true
7
15
benches : true
@@ -10,17 +18,22 @@ jobs:
10
18
parameters :
11
19
# all azure job parameters start with `job_` prefix
12
20
job_name : check_nightly
21
+ job_condition : ${{ parameters['cargo-check-nightly'] }}
13
22
job_displayName : Cargo check (nightly)
23
+ job_continueOnError : true
14
24
# parameters from running program are with the same name without any prefix
15
25
rust : nightly
16
26
all : true
17
27
benches : true
18
28
19
29
# Check formating
20
30
- template : ../jobs/rustfmt.yml
31
+ parameters :
32
+ job_condition : ${{ parameters['rustfmt'] }}
21
33
22
34
# Clippy
23
35
- template : ../jobs/cargo-clippy.yml
24
36
parameters :
37
+ job_condition : ${{ parameters['cargo-clippy'] }}
25
38
all : true
26
39
Original file line number Diff line number Diff line change 19
19
- task : DownloadPipelineArtifact@2
20
20
inputs :
21
21
artifactName : ${{ parameters['artifactName'] }}
22
+ targetPath : " $(Pipeline.Workspace)/${{parameters['artifactName']}}"
22
23
- bash : |
23
24
MY_TAG="$(Build.SourceBranch)"
24
25
MY_TAG=${MY_TAG#refs/tags/}
You can’t perform that action at this time.
0 commit comments