From cd658542656d1c6c6bad1cfc969932a83a25b4ca Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 21:49:15 +0200 Subject: [PATCH 1/7] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..697d6b1 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,21 @@ +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: Cake@0 + inputs: + script: 'build.cake' + target: 'Default' + verbosity: 'Normal' + displayName: 'Execute Build script' + +- task: PublishTestResults@2 + inputs: + testResultsFormat: 'VSTest' + testResultsFiles: '**outputs/tests/*.trx' + mergeTestResults: true + failTaskOnFailedTests: true + displayName: 'Publish Test Results' \ No newline at end of file From e0ccad9fece1a4d3af21bbe41761f333355ff4a3 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 21:50:54 +0200 Subject: [PATCH 2/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 697d6b1..0e91972 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,7 +2,7 @@ trigger: - master pool: - vmImage: 'ubuntu-latest' + vmImage: 'windows-latest' steps: - task: Cake@0 From 4507c39bfec233ce1be94e129ee15ff47aab3e07 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 22:02:22 +0200 Subject: [PATCH 3/7] Update build.cake --- build.cake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.cake b/build.cake index b999df2..22d60be 100644 --- a/build.cake +++ b/build.cake @@ -135,7 +135,7 @@ Task("RunTests") SuppressWarning = true }; - return (XmlPeek(file, "/Project/PropertyGroup/TargetFrameworks", settings) ?? XmlPeek(file, "/Project/PropertyGroup/TargetFramework", settings)).Split(";"); + return (XmlPeek(file, "/Project/PropertyGroup/TargetFrameworks", settings) ?? XmlPeek(file, "/Project/PropertyGroup/TargetFramework", settings)).Split(';'); } }); @@ -241,4 +241,4 @@ Task("Full") .IsDependentOn("Pack") .IsDependentOn("Push"); -RunTarget(target); \ No newline at end of file +RunTarget(target); From 016644ba6f615e887e124d86480e66d18bfe7892 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 22:05:47 +0200 Subject: [PATCH 4/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0e91972..beb9a1a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,7 +8,7 @@ steps: - task: Cake@0 inputs: script: 'build.cake' - target: 'Default' + target: 'Full' verbosity: 'Normal' displayName: 'Execute Build script' From 42ef0e89b25813f0724cea4d9fb68b0a8d9a6ffc Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 22:46:26 +0200 Subject: [PATCH 5/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index beb9a1a..d3b4d0f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,7 +15,17 @@ steps: - task: PublishTestResults@2 inputs: testResultsFormat: 'VSTest' - testResultsFiles: '**outputs/tests/*.trx' + testResultsFiles: 'outputs/tests/*.trx' mergeTestResults: true failTaskOnFailedTests: true - displayName: 'Publish Test Results' \ No newline at end of file + displayName: 'Publish Test Results' + +- task: PublishPipelineArtifact@1 + inputs: + targetPath: 'outputs/*.nupkg' + artifact: 'Packages' + +- task: PublishPipelineArtifact@1 + inputs: + targetPath: 'outputs/*.snupkg' + artifact: 'Symbols' \ No newline at end of file From baf6ef6fecb38bbd7d0b899c4eaf18df89ef2ea5 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 23:03:05 +0200 Subject: [PATCH 6/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d3b4d0f..5f0118a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,10 +22,10 @@ steps: - task: PublishPipelineArtifact@1 inputs: - targetPath: 'outputs/*.nupkg' + targetPath: 'outputs\\*.nupkg' artifact: 'Packages' - task: PublishPipelineArtifact@1 inputs: - targetPath: 'outputs/*.snupkg' + targetPath: 'outputs\\*.snupkg' artifact: 'Symbols' \ No newline at end of file From a97bc37474c48beb0aae1bfd2bf1f7672100c708 Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Thu, 17 Oct 2019 23:23:18 +0200 Subject: [PATCH 7/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5f0118a..d02d23a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,12 +20,15 @@ steps: failTaskOnFailedTests: true displayName: 'Publish Test Results' -- task: PublishPipelineArtifact@1 +- task: CopyFiles@2 inputs: - targetPath: 'outputs\\*.nupkg' - artifact: 'Packages' + SourceFolder: 'outputs/' + Contents: | + *.nupkg + *.snupkg + TargetFolder: 'artifacts' - task: PublishPipelineArtifact@1 inputs: - targetPath: 'outputs\\*.snupkg' - artifact: 'Symbols' \ No newline at end of file + targetPath: 'artifacts' + artifact: 'Packages'