-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
47 lines (42 loc) · 1.01 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
trigger:
branches:
include:
- main
paths:
exclude:
- .gitignore
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- LICENSE.md
- README.md
- NuGet.Config
- ./*.yml
pool:
vmImage: 'windows-2022'
variables:
- group: mako-iot-github
- name: runSettingsFile
value: 'Tests\SoftwareTests\MakoIoT.Device.PlatformClient.Test\nano.runsettings'
- name: packageName
value: 'MakoIoT.Device.PlatformClient'
resources:
repositories:
- repository: templates
type: github
name: CShark-Hub/Mako-IoT.Tools
endpoint: CShark-Hub
stages:
- stage: BuildAndTest
displayName: "Build & Test"
jobs:
- job:
steps:
- template: azure-pipelines-templates/azure-pipelines-ci-template.yml@templates
- stage: PublishNuGet
displayName: "Publish NuGet"
dependsOn: BuildAndTest
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
jobs:
- job:
steps:
- template: azure-pipelines-templates/azure-pipelines-publish-template.yml@templates