From 72b30a0b4432dda0227325e484bcccaae1e81914 Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 14 Oct 2018 16:17:37 +0200 Subject: [PATCH 1/5] Add test to Pipelines --- azure-pipelines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bc83a58..29a64e0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,3 +12,8 @@ variables: steps: - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration)' +- task: DotNetCoreCLI@2 + inputs: + command: test + projects: '**/*Tests/*.csproj' + arguments: '--configuration $(buildConfiguration)' -- 2.45.2 From c5baa1dff220bc16c5aae36ac6c28e7c912f493a Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 14 Oct 2018 16:24:03 +0200 Subject: [PATCH 2/5] Add publishing to Pipelines --- azure-pipelines.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29a64e0..5a01e9a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,8 +12,19 @@ variables: steps: - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration)' + - task: DotNetCoreCLI@2 + displayName 'dotnet test $(buildConfiguration)' inputs: command: test projects: '**/*Tests/*.csproj' arguments: '--configuration $(buildConfiguration)' + +- task: DotNetCoreCLI@2 + displayName: 'dotnet publish $(buildConfiguration)' + inputs: + command: publish + arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)' + +- task: PublishBuildArtifacts@1 + displayName: 'publish artifacts' -- 2.45.2 From bd61ffca1b4f7887e42fb8f6afc4ab61e83095a0 Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 14 Oct 2018 16:25:42 +0200 Subject: [PATCH 3/5] Fix typo --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5a01e9a..cd75f6f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ steps: displayName: 'dotnet build $(buildConfiguration)' - task: DotNetCoreCLI@2 - displayName 'dotnet test $(buildConfiguration)' + displayName: 'dotnet test $(buildConfiguration)' inputs: command: test projects: '**/*Tests/*.csproj' -- 2.45.2 From 34c553fc09835cf1e5211747128675855d11867c Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 14 Oct 2018 16:51:17 +0200 Subject: [PATCH 4/5] Fix NuGet pack command --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cd75f6f..6654f3b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,11 +20,11 @@ steps: projects: '**/*Tests/*.csproj' arguments: '--configuration $(buildConfiguration)' -- task: DotNetCoreCLI@2 - displayName: 'dotnet publish $(buildConfiguration)' +- task: NuGetCommand@2 + displayName: 'nuget pack' inputs: - command: publish - arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)' + command: pack + packagesToPack: '**/*.csproj' - task: PublishBuildArtifacts@1 displayName: 'publish artifacts' -- 2.45.2 From 2a39eb7a6c27d3bfd6cb6dce46bc29576444e1c3 Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 14 Oct 2018 16:58:00 +0200 Subject: [PATCH 5/5] Fix pack again --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6654f3b..13eecb1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,11 +20,11 @@ steps: projects: '**/*Tests/*.csproj' arguments: '--configuration $(buildConfiguration)' -- task: NuGetCommand@2 - displayName: 'nuget pack' +- task: DotNetCoreCLI@2 inputs: - command: pack + command: 'pack' packagesToPack: '**/*.csproj' + configuration: 'release' - task: PublishBuildArtifacts@1 displayName: 'publish artifacts' -- 2.45.2