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

Commit

Permalink
Fix deploy. Continue piplines even if faild on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
xoac committed Oct 5, 2019
1 parent 3970029 commit 1537f72
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ stages:
displayName: "Quick checks"
jobs:
- template: ci/scenarios/check.yml@rust_pipelines
parameters:
cargo-check: true
cargo-check-nigtly: true
cargo-clippy: true
rustfmt: true

- stage: test
displayName: "Multi OS native tests"
Expand All @@ -27,6 +32,7 @@ stages:
min_rust_supported: 1.31

# This stage allow to easy test your crate using cross project.
# Supported targets: https://github.com/rust-embedded/cross#supported-targets
- stage: embedded
displayName: "Cross check and tests"
dependsOn:
Expand Down Expand Up @@ -73,4 +79,4 @@ stages:
- template: ci/scenarios/github/release.yml@rust_pipelines
parameters:
job_condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
gitHubConnection: PipelinesTemplates
gitHubConnection: PipelinesTemplates
2 changes: 2 additions & 0 deletions ci/jobs/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ parameters:
job_displayName: Cargo check # Default displayName
job_dependsOn: [] # Dependencies to for the job to start
job_condition: true # Job condition
job_continueOnError: false # Should other job still run even if this fail
job_post-steps: [] # Custom steps running after job

# global parameters
Expand Down Expand Up @@ -44,6 +45,7 @@ jobs:
displayName: ${{ parameters['job_displayName'] }}
condition: ${{ parameters['job_condition'] }}
dependsOn: ${{ parameters['job_dependsOn'] }}
continueOnError: ${{ parameters['job_continueOnError'] }}
pool:
vmImage: ubuntu-16.04
variables:
Expand Down
13 changes: 13 additions & 0 deletions ci/scenarios/check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
parameters:
cargo-clippy: true
cargo-check: true
cargo-check-nightly: true
rustfmt: true


jobs:
- template: ../jobs/cargo-check.yml
parameters:
job_name: check_stable
job_condition: ${{ parameters['cargo-check'] }}
job_displayName: Cargo check (stable)
all: true
benches: true
Expand All @@ -10,17 +18,22 @@ jobs:
parameters:
# all azure job parameters start with `job_` prefix
job_name: check_nightly
job_condition: ${{ parameters['cargo-check-nightly'] }}
job_displayName: Cargo check (nightly)
job_continueOnError: true
# parameters from running program are with the same name without any prefix
rust: nightly
all: true
benches: true

# Check formating
- template: ../jobs/rustfmt.yml
parameters:
job_condition: ${{ parameters['rustfmt'] }}

# Clippy
- template: ../jobs/cargo-clippy.yml
parameters:
job_condition: ${{ parameters['cargo-clippy'] }}
all: true

1 change: 1 addition & 0 deletions ci/scenarios/github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- task: DownloadPipelineArtifact@2
inputs:
artifactName: ${{ parameters['artifactName'] }}
targetPath: "$(Pipeline.Workspace)/${{parameters['artifactName']}}"
- bash: |
MY_TAG="$(Build.SourceBranch)"
MY_TAG=${MY_TAG#refs/tags/}
Expand Down

0 comments on commit 1537f72

Please sign in to comment.