-
-
Notifications
You must be signed in to change notification settings - Fork 20
Adding hardware test #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding hardware test #351
Changes from all commits
b605096
20ed2bc
d0c1ab2
00f9e1d
679e46b
bd361a0
5af0ba5
a982d02
1962af4
b9ab875
2aa239a
9041b38
7e7818d
727367b
c97f0ab
3342e62
9236f0e
bf05b05
6c5ce4e
60c22e9
7595bb9
06a9889
a43ad17
23e0e89
1958f63
d439b3a
d86d023
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) .NET Foundation and Contributors | ||
# See LICENSE file in the project root for full license information. | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- main | ||
- develop | ||
- release-* | ||
paths: | ||
exclude: | ||
- .gitignore | ||
- CHANGELOG.md | ||
- LICENSE.md | ||
- README.md | ||
- NuGet.Config | ||
- assets/* | ||
- .github/* | ||
|
||
# PR always trigger build | ||
pr: | ||
autoCancel: true | ||
|
||
Ellerbach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# add nf-tools repo to resources (for Azure Pipelines templates) | ||
resources: | ||
repositories: | ||
- repository: templates | ||
type: github | ||
name: nanoframework/nf-tools | ||
endpoint: nanoframework | ||
|
||
Ellerbach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
jobs: | ||
- job: Trigger | ||
displayName: Trigger Azure Dev Ops build and test pipeline | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- template: azure-pipelines-templates/device-bootstrap.yml@templates | ||
parameters: | ||
AZURE_DEVOPS_PROJECT: nanoFramework.Json | ||
AZURE_DEVOPS_PIPELINE_ID: 59 | ||
Ellerbach marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,10 @@ | ||
# Copyright (c) .NET Foundation and Contributors | ||
# See LICENSE file in the project root for full license information. | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- main | ||
- develop | ||
- release-* | ||
paths: | ||
exclude: | ||
- .github_changelog_generator | ||
- .gitignore | ||
- CHANGELOG.md | ||
- CODE_OF_CONDUCT.md | ||
- LICENSE.md | ||
- README.md | ||
- NuGet.Config | ||
- assets/* | ||
- config/* | ||
- .github/* | ||
|
||
# PR always trigger build | ||
pr: | ||
autoCancel: true | ||
# The Pipeline is going to be triggered by a call to Azure DevOps REST API | ||
# Manual trigger is always possible. | ||
trigger: none | ||
pr: none | ||
|
||
# add nf-tools repo to resources (for Azure Pipelines templates) | ||
resources: | ||
|
@@ -48,20 +30,49 @@ variables: | |
- name: nugetPackageName | ||
value: 'nanoFramework.Json' | ||
|
||
steps: | ||
parameters: | ||
- name: appComponents | ||
displayName: List of capabilities to run the tests on | ||
type: object | ||
default: | ||
- none | ||
|
||
Comment on lines
+33
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Improve parameter configuration and validation. The default value of Consider these improvements:
Here's a suggested improvement: parameters:
- name: appComponents
displayName: List of capabilities to run the tests on
type: object
+ # List of valid components: [component1, component2, ...]
+ # At least one component must be specified
default:
- - none
+ - required: true
+ - allowed:
+ - component1
+ - component2
🧰 Tools🪛 yamllint[warning] 34-34: wrong indentation: expected 2 but found 0 (indentation) |
||
stages: | ||
- stage: Build | ||
displayName: 'Build' | ||
jobs: | ||
- job: Build | ||
displayName: 'Build job' | ||
pool: | ||
# default is the following VM Image | ||
vmImage: 'windows-latest' | ||
steps: | ||
|
||
# step from template @ nf-tools repo | ||
# all build, update and publish steps | ||
- template: azure-pipelines-templates/class-lib-build.yml@templates | ||
parameters: | ||
sonarCloudProject: 'nanoframework_lib-nanoFramework.Json' | ||
runUnitTests: true | ||
unitTestRunsettings: '$(System.DefaultWorkingDirectory)\.runsettings' | ||
|
||
# step from template @ nf-tools repo | ||
# report error | ||
- template: azure-pipelines-templates/discord-webhook-task.yml@templates | ||
parameters: | ||
status: 'failure' | ||
webhookUrl: '$(DiscordWebhook)' | ||
message: '' | ||
|
||
# step from template @ nf-tools repo | ||
# all build, update and publish steps | ||
- template: azure-pipelines-templates/class-lib-build.yml@templates | ||
parameters: | ||
sonarCloudProject: 'nanoframework_lib-nanoFramework.Json' | ||
runUnitTests: true | ||
unitTestRunsettings: '$(System.DefaultWorkingDirectory)\.runsettings' | ||
- task: PublishPipelineArtifact@1 | ||
displayName: Publish Pipeline Artifact copy | ||
inputs: | ||
path: '$(System.DefaultWorkingDirectory)' | ||
artifactName: 'Artifacts' | ||
|
||
# step from template @ nf-tools repo | ||
# report error | ||
- template: azure-pipelines-templates/discord-webhook-task.yml@templates | ||
parameters: | ||
status: 'failure' | ||
webhookUrl: '$(DiscordWebhook)' | ||
message: '' | ||
- ${{ each appComponents in parameters.appComponents }}: | ||
- template: azure-pipelines-templates/device-test.yml@templates | ||
parameters: | ||
appComponents: ${{ appComponents }} | ||
unitTestRunsettings: | ||
- 'nanoFramework.Json.Test/nano.runsettings,nanoFramework.Json.Test/bin/Release/NFUnitTest.dll' |
Uh oh!
There was an error while loading. Please reload this page.