2019-08-22 13:24:41 +03:00
|
|
|
trigger:
|
|
|
|
branches:
|
2021-04-11 17:06:01 +03:00
|
|
|
include: [main, develop, "release-*" ]
|
2019-08-22 13:24:41 +03:00
|
|
|
paths:
|
2021-04-11 17:06:01 +03:00
|
|
|
exclude: [README.md, LICENSE.md, CHANGELOG.md, version.json, "*.md", .gitignore]
|
2020-06-17 10:36:56 +03:00
|
|
|
tags:
|
|
|
|
include: ["v*"]
|
2019-08-22 13:24:41 +03:00
|
|
|
|
2020-06-17 10:36:56 +03:00
|
|
|
# PR always trigger build
|
2019-08-22 13:24:41 +03:00
|
|
|
|
|
|
|
# add nf-tools repo to resources (for Azure Pipelines templates)
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: templates
|
|
|
|
type: github
|
|
|
|
name: nanoframework/nf-tools
|
|
|
|
endpoint: nanoframework
|
|
|
|
|
|
|
|
pool:
|
2021-04-11 17:06:01 +03:00
|
|
|
vmImage: 'windows-2019'
|
2019-08-22 13:24:41 +03:00
|
|
|
|
|
|
|
variables:
|
2020-06-17 10:36:56 +03:00
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
2020-07-28 17:22:37 +03:00
|
|
|
solution: '**/*.sln'
|
2019-08-22 13:24:41 +03:00
|
|
|
buildPlatform: 'Any CPU'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
nugetPackageName: 'nanoFramework.M5Stack'
|
2021-03-25 18:12:07 +03:00
|
|
|
repoName: 'nanoFramework.M5Stack'
|
2019-08-22 13:24:41 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# all build, update and publish steps
|
|
|
|
- template: azure-pipelines-templates/class-lib-build.yml@templates
|
|
|
|
parameters:
|
2019-09-25 11:52:30 +03:00
|
|
|
sonarCloudProject: 'nanoframework_lib-nanoFramework.M5Stack'
|
2019-08-22 13:24:41 +03:00
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# report error
|
|
|
|
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
|
|
|
|
parameters:
|
|
|
|
status: 'failure'
|
|
|
|
webhookUrl: '$(DiscordWebhook)'
|
|
|
|
message: ''
|