This repository was archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
833a457
commit 76d5f2c
Showing
6 changed files
with
180 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# ------------------------------------------------------------------------------ | ||
# <auto-generated> | ||
# | ||
# This code was generated. | ||
# | ||
# - To turn off auto-generation set: | ||
# | ||
# [AzurePipelinesSteps (AutoGenerate = false)] | ||
# | ||
# - To trigger manual generation invoke: | ||
# | ||
# nuke --configure-build-server --host AzurePipelines | ||
# | ||
# </auto-generated> | ||
# ------------------------------------------------------------------------------ | ||
|
||
# | ||
parameters: | ||
Configuration: 'Release' | ||
Artifacts: '' | ||
Coverage: '' | ||
Verbosity: 'Normal' | ||
steps: | ||
- pwsh: ./build.ps1 BuildVersion Build --skip --configuration '${{ parameters.Configuration }}' --artifacts '${{ parameters.Artifacts }}' --coverage '${{ parameters.Coverage }}' --verbosity '${{ parameters.Verbosity }}' | ||
displayName: '⚙ Build' | ||
- pwsh: ./build.ps1 Generate_Code_Coverage_Reports Test --skip --configuration '${{ parameters.Configuration }}' --artifacts '${{ parameters.Artifacts }}' --coverage '${{ parameters.Coverage }}' --verbosity '${{ parameters.Verbosity }}' | ||
displayName: '🚦 Test' | ||
- pwsh: ./build.ps1 Pack --skip --configuration '${{ parameters.Configuration }}' --artifacts '${{ parameters.Artifacts }}' --coverage '${{ parameters.Coverage }}' --verbosity '${{ parameters.Verbosity }}' | ||
displayName: '📦 Pack' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,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 | ||
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 | ||
autoCancel: true | ||
branches: | ||
include: | ||
- master | ||
|
||
resources: | ||
repositories: | ||
- repository: rsg | ||
type: github | ||
name: RocketSurgeonsGuild/AzureDevopsTemplates | ||
ref: refs/tags/v0.11.8 | ||
endpoint: github | ||
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: '7dfeb756-b27e-47ec-8906-a349cf7e0688' | ||
- group: rsg-bot | ||
- 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: '7dfeb756-b27e-47ec-8906-a349cf7e0688' | ||
- group: rsg-bot | ||
# Fixes the github package repo warnings on restore | ||
- name: EmitAssetsLogMessages | ||
value: false | ||
- name: HideWarningsAndErrors | ||
value: true | ||
|
||
jobs: | ||
- template: pipeline/nuke.yml@rsg | ||
parameters: | ||
- 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) | ||
- 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) | ||
Verbosity: $(Verbosity) | ||
GitHub: true | ||
GitHubAuthVariableGroup: rsg-bot | ||
GitHubPackages: true | ||
MyGetPackages: false | ||
DotNetSdk: | ||
- '2.x' | ||
- '3.x' | ||
NuGetVersion: '5.4.0' | ||
Coverage: $(Coverage) | ||
|
||
- template: support/publish-artifacts.yml@rsg | ||
parameters: | ||
Artifacts: $(Artifacts) | ||
Configuration: $(Configuration) | ||
Coverage: $(Coverage) | ||
Postfix: ' - $(BuildName)' | ||
PublishVSTest: true |