-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces Cake with AZ-Pipeline using YAML and moves projects (#9)
- Loading branch information
1 parent
e0b19b9
commit 3c17f12
Showing
108 changed files
with
209 additions
and
450 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = crlf | ||
insert_final_newline = true | ||
indent_style = space | ||
|
||
[*.props, *.csproj, *.yml, *.json] | ||
indent_size = 2 | ||
|
||
[*.cs] | ||
indent_size = 4 |
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,20 @@ | ||
name: $(SemVer) | ||
|
||
variables: | ||
SemVer: $[ variables['Build.SourceBranchName'] ] | ||
CommitId: $(Build.SourceVersion) | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- refs/tags/* | ||
|
||
pr: none | ||
|
||
pool: | ||
vmImage: windows-2019 | ||
|
||
stages: | ||
- template: azure-templates/stage-build.yml | ||
- template: azure-templates/stage-deploy.yml |
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,24 @@ | ||
name: $(SemVer) | ||
|
||
variables: | ||
BuildRev: $[counter(format('{0:yyyyMMdd}', pipeline.startTime), 1)] | ||
SemVer: $[format('{0:yyyy}.{0:MM}.{0:dd}-pre{1}', pipeline.startTime, variables.BuildRev)] | ||
CommitId: $(Build.SourceVersion) | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
|
||
pr: | ||
autoCancel: true | ||
branches: | ||
include: | ||
- master | ||
|
||
pool: | ||
vmImage: windows-2019 | ||
|
||
stages: | ||
- template: azure-templates/stage-build.yml |
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,42 @@ | ||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: BuildTestPack | ||
displayName: 'Build, test & pack' | ||
timeoutInMinutes: 5 | ||
cancelTimeoutInMinutes: 2 | ||
steps: | ||
- task: UseDotNet@2 | ||
displayName: 'Use .NET Core 3.1.x' | ||
inputs: | ||
version: '3.1.x' | ||
packageType: sdk | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Build Solution' | ||
inputs: | ||
command: build | ||
projects: 'src/*.sln' | ||
arguments: '-c $(BuildConfiguration) --no-incremental --nologo -p:TreatWarningsAsErrors=true -p:Version=$(SemVer) -p:InformationalVersion=$(CommitId)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'UnitTests' | ||
inputs: | ||
command: test | ||
projects: 'src/**/UnitTests.csproj' | ||
arguments: '-c $(BuildConfiguration) --no-build' | ||
testRunTitle: 'UnitTests' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Pack Nupkg' | ||
inputs: | ||
command: custom | ||
custom: pack | ||
projects: 'src/*.sln' | ||
arguments: '-c $(BuildConfiguration) --no-build -o $(Build.ArtifactStagingDirectory) -p:Version=$(SemVer) -p:InformationalVersion=$(CommitId)' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish Artifacts' | ||
inputs: | ||
path: '$(Build.ArtifactStagingDirectory)' | ||
artifact: Artifacts |
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,23 @@ | ||
stages: | ||
- stage: Deploy | ||
condition: and (succeeded(), startsWith( variables['Build.SourceBranch'], 'refs/tags' )) | ||
dependsOn: Build | ||
jobs: | ||
- deployment: DeployArtifacts | ||
environment: 'Prod' | ||
displayName: 'Deploys artifacts' | ||
timeoutInMinutes: 4 | ||
cancelTimeoutInMinutes: 2 | ||
strategy: | ||
runOnce: | ||
deploy: | ||
steps: | ||
- checkout: none | ||
- task: NuGetCommand@2 | ||
displayName: 'Push Nupkg to NuGet' | ||
inputs: | ||
command: push | ||
nugetFeedType: external | ||
publishFeedCredentials: nuget_push_new_versions | ||
verbosityPush: Normal | ||
packagesToPush: '$(Pipeline.Workspace)/**/*.nupkg;!$(Pipeline.Workspace)/**/*.symbols.nupkg' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.