From 98dc84d5aaa547825b71e5a3f3d5ea64f11a8009 Mon Sep 17 00:00:00 2001 From: "Simon J.K. Pedersen" Date: Mon, 21 Jan 2019 00:07:35 +0100 Subject: [PATCH 1/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5bce72e..7bcd972 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,5 +10,31 @@ variables: buildConfiguration: 'Release' steps: -- script: dotnet build LetsEncrypt.Azure.DotNetCore.sln --configuration $(buildConfiguration) - displayName: 'dotnet build LetsEncrypt.Azure.DotNetCore.sln $(buildConfiguration)' +- task: DotNetCoreInstaller@0 + displayName: install dotnet 2.1.401 + inputs: + packageType: 'sdk' + version: '2.1.401' + +- task: DotNetCoreCLI@2 + displayName: dotnet build + inputs: + command: build + +- task: DotNetCoreCLI@2 + displayName: dotnet test + inputs: + command: test + projects: 'test/**/*.csproj' + +- task: DotNetCoreCLI@2 + displayName: dotnet pack + inputs: + command: pack + packDirectory: '$(Build.ArtifactStagingDirectory)/packages' + +- task: PublishBuildArtifacts@1 + displayName: publish artifacts + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' \ No newline at end of file From 41be13434d0bb2393267daa6ee4b0ded1f297043 Mon Sep 17 00:00:00 2001 From: "Simon J.K. Pedersen" Date: Mon, 21 Jan 2019 00:16:17 +0100 Subject: [PATCH 2/4] Update azure-pipelines.yml --- azure-pipelines.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7bcd972..c84ec05 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,10 +16,8 @@ steps: packageType: 'sdk' version: '2.1.401' -- task: DotNetCoreCLI@2 - displayName: dotnet build - inputs: - command: build +- script: dotnet build LetsEncrypt.Azure.DotNetCore.sln --configuration $(buildConfiguration) + displayName: 'dotnet build LetsEncrypt.Azure.DotNetCore.sln $(buildConfiguration)' - task: DotNetCoreCLI@2 displayName: dotnet test @@ -37,4 +35,4 @@ steps: displayName: publish artifacts condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) inputs: - PathtoPublish: '$(Build.ArtifactStagingDirectory)' \ No newline at end of file + PathtoPublish: '$(Build.ArtifactStagingDirectory)' From 665f122f4c07460dddb7ad28d808942751ed4d5a Mon Sep 17 00:00:00 2001 From: "Simon J.K. Pedersen" Date: Mon, 21 Jan 2019 00:21:22 +0100 Subject: [PATCH 3/4] Update azure-pipelines.yml --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c84ec05..dea53c4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,6 +29,7 @@ steps: displayName: dotnet pack inputs: command: pack + projects: 'LetsEncrypt.Azure.Core.V2/*.csproj' packDirectory: '$(Build.ArtifactStagingDirectory)/packages' - task: PublishBuildArtifacts@1 From 0deb88b37465d130c2fa9502280c64bb5fbe428b Mon Sep 17 00:00:00 2001 From: "Simon J.K. Pedersen" Date: Mon, 21 Jan 2019 00:25:11 +0100 Subject: [PATCH 4/4] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dea53c4..1616cad 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,7 @@ steps: displayName: dotnet pack inputs: command: pack - projects: 'LetsEncrypt.Azure.Core.V2/*.csproj' + packagesToPack: 'LetsEncrypt.Azure.Core.V2/*.csproj' packDirectory: '$(Build.ArtifactStagingDirectory)/packages' - task: PublishBuildArtifacts@1