45 строки
1.1 KiB
YAML
45 строки
1.1 KiB
YAML
trigger:
|
|
branches:
|
|
include: [master, develop, "release-*" ]
|
|
paths:
|
|
exclude: ["*.md", .gitignore]
|
|
tags:
|
|
include: ["v*"]
|
|
|
|
# PR always trigger build
|
|
|
|
# add nf-tools repo to resources (for Azure Pipelines templates)
|
|
resources:
|
|
repositories:
|
|
- repository: templates
|
|
type: github
|
|
name: nanoframework/nf-tools
|
|
endpoint: nanoframework
|
|
|
|
pool:
|
|
vmImage: 'VS2017-Win2016'
|
|
|
|
variables:
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
solution: '**/*.sln'
|
|
buildPlatform: 'Any CPU'
|
|
buildConfiguration: 'Release'
|
|
nugetPackageName: 'nanoFramework.Windows.Devices.Gpio'
|
|
repoName: 'lib-Windows.Devices.Gpio'
|
|
|
|
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-Windows.Devices.Gpio'
|
|
|
|
# step from template @ nf-tools repo
|
|
# report error
|
|
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
|
|
parameters:
|
|
status: 'failure'
|
|
webhookUrl: '$(DiscordWebhook)'
|
|
message: ''
|