This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
131 lines (122 loc) · 3.38 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
trigger:
batch: true
branches:
include:
- master
- refs/tags/*
paths:
exclude:
- '**/*.md'
- '.appveyor.yml'
- '.codecov.yml'
- 'GitVersion.yml'
- 'GitReleaseManager.yaml'
- .vscode/*
- .git*
- .editorconfig
- .nuke
- LICENSE
pr:
autoCancel: true
branches:
include:
- master
resources:
repositories:
- repository: rsg
type: github
name: RocketSurgeonsGuild/AzureDevopsTemplates
ref: refs/tags/v0.12.0
endpoint: github
variables:
- name: CONFIGURATION
value: Release
- name: VERBOSITY
value: Normal
- name: COVERAGE
value: '$(Agent.BuildDirectory)/c'
- name: ARTIFACTS
value: $(Build.ArtifactStagingDirectory)
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: 'true'
- name: CodeCovToken
value: '6fb82bba-711d-4736-85be-1e7e04ec6033'
- group: rsg-bot
# Fixes the github package repo warnings on restore
- name: EmitAssetsLogMessages
value: false
- name: HideWarningsAndErrors
value: true
jobs:
- template: jobs/gitversion.yml@rsg
- template: jobs/publish-release.yml@rsg
parameters:
EnableReleaseNotes: true
GitHub: true
GitHubPackages: true
GitHubAuthVariableGroup: rsg-bot
PublishNuGetPackagesFromArtifact: 'NuGet - Windows'
AuthNuGetFeeds:
- name: RocketSurgeonsGuild
source: https://nuget.pkg.github.com/RocketSurgeonsGuild/index.json
username: $(GitHub.UserName)
password: $(GitHub.Token)
- job: Build
dependsOn:
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
- GitHub_Draft_Release
variables:
- group: rsg-bot
strategy:
matrix:
Windows:
BuildName: 'Windows'
ImageName: 'windows-latest'
Linux:
BuildName: 'Linux'
ImageName: 'ubuntu-latest'
macOS:
BuildName: 'macOS'
ImageName: 'macOS-latest'
pool:
vmImage: $(ImageName)
steps:
- template: support/mono.yml@rsg
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
- template: support/download-release-notes.yml@rsg
- template: support/install-dotnet.yml@rsg
parameters:
DotNetSdk:
- '2.x'
- '3.x'
AuthNuGetFeeds:
- name: RocketSurgeonsGuild
source: https://nuget.pkg.github.com/RocketSurgeonsGuild/index.json
username: $(GitHub.UserName)
password: $(GitHub.Token)
- template: support/gitversion-hack.yml@rsg
- task: DotNetCoreCLI@2
displayName: 'dotnet tool restore'
inputs:
command: custom
custom: tool
arguments: 'restore'
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
feedsToUse: config
nugetConfigPath: NuGet.config
verbosityRestore: Minimal
- template: ./azure-pipelines.nuke.yml
parameters:
Artifacts: $(Artifacts)
Configuration: $(Configuration)
Coverage: $(Coverage)
- template: support/publish-artifacts.yml@rsg
parameters:
Artifacts: $(Artifacts)
Configuration: $(Configuration)
Coverage: $(Coverage)
Postfix: ' - $(BuildName)'
PublishVSTest: true