Skip to content
This repository was archived by the owner on Mar 20, 2022. It is now read-only.

Commit 1537f72

Browse files
committed
Fix deploy. Continue piplines even if faild on nightly
1 parent 3970029 commit 1537f72

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

azure-pipelines.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ stages:
1818
displayName: "Quick checks"
1919
jobs:
2020
- 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
2126

2227
- stage: test
2328
displayName: "Multi OS native tests"
@@ -27,6 +32,7 @@ stages:
2732
min_rust_supported: 1.31
2833

2934
# This stage allow to easy test your crate using cross project.
35+
# Supported targets: https://github.com/rust-embedded/cross#supported-targets
3036
- stage: embedded
3137
displayName: "Cross check and tests"
3238
dependsOn:
@@ -73,4 +79,4 @@ stages:
7379
- template: ci/scenarios/github/release.yml@rust_pipelines
7480
parameters:
7581
job_condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
76-
gitHubConnection: PipelinesTemplates
82+
gitHubConnection: PipelinesTemplates

ci/jobs/cargo-check.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ parameters:
44
job_displayName: Cargo check # Default displayName
55
job_dependsOn: [] # Dependencies to for the job to start
66
job_condition: true # Job condition
7+
job_continueOnError: false # Should other job still run even if this fail
78
job_post-steps: [] # Custom steps running after job
89

910
# global parameters
@@ -44,6 +45,7 @@ jobs:
4445
displayName: ${{ parameters['job_displayName'] }}
4546
condition: ${{ parameters['job_condition'] }}
4647
dependsOn: ${{ parameters['job_dependsOn'] }}
48+
continueOnError: ${{ parameters['job_continueOnError'] }}
4749
pool:
4850
vmImage: ubuntu-16.04
4951
variables:

ci/scenarios/check.yml

+13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
parameters:
2+
cargo-clippy: true
3+
cargo-check: true
4+
cargo-check-nightly: true
5+
rustfmt: true
6+
7+
18
jobs:
29
- template: ../jobs/cargo-check.yml
310
parameters:
411
job_name: check_stable
12+
job_condition: ${{ parameters['cargo-check'] }}
513
job_displayName: Cargo check (stable)
614
all: true
715
benches: true
@@ -10,17 +18,22 @@ jobs:
1018
parameters:
1119
# all azure job parameters start with `job_` prefix
1220
job_name: check_nightly
21+
job_condition: ${{ parameters['cargo-check-nightly'] }}
1322
job_displayName: Cargo check (nightly)
23+
job_continueOnError: true
1424
# parameters from running program are with the same name without any prefix
1525
rust: nightly
1626
all: true
1727
benches: true
1828

1929
# Check formating
2030
- template: ../jobs/rustfmt.yml
31+
parameters:
32+
job_condition: ${{ parameters['rustfmt'] }}
2133

2234
# Clippy
2335
- template: ../jobs/cargo-clippy.yml
2436
parameters:
37+
job_condition: ${{ parameters['cargo-clippy'] }}
2538
all: true
2639

ci/scenarios/github/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- task: DownloadPipelineArtifact@2
2020
inputs:
2121
artifactName: ${{ parameters['artifactName'] }}
22+
targetPath: "$(Pipeline.Workspace)/${{parameters['artifactName']}}"
2223
- bash: |
2324
MY_TAG="$(Build.SourceBranch)"
2425
MY_TAG=${MY_TAG#refs/tags/}

0 commit comments

Comments
 (0)