From f32925536f1ea750c88358cbcb8ad90fcf61f3f6 Mon Sep 17 00:00:00 2001 From: Anand Mohan Date: Tue, 31 Dec 2024 14:05:47 -0800 Subject: [PATCH 1/4] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..e8f3d6f54 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.11' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 143b51eec868faa54c274aa82e4be3d827549bae Mon Sep 17 00:00:00 2001 From: Anand Mohan Date: Thu, 2 Jan 2025 20:11:06 -0800 Subject: [PATCH 2/4] 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 e8f3d6f54..30c532c7d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - vmImage: ubuntu-latest + vmImage: 'ubuntu-latest' # other options: 'macOS-latest', 'windows-latest' steps: - task: Maven@3 From 15941a7dea9c4d05623f7a9b2de41c5221e20c44 Mon Sep 17 00:00:00 2001 From: Anand Mohan Date: Thu, 2 Jan 2025 20:12:22 -0800 Subject: [PATCH 3/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 30c532c7d..005cf7638 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,13 +10,13 @@ pool: vmImage: 'ubuntu-latest' # other options: 'macOS-latest', 'windows-latest' steps: -- task: Maven@3 +- task: Maven@4 inputs: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.11' + jdkVersionOption: 'default' jdkArchitectureOption: 'x64' publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' + testResultsFiles: '**/TEST-*.xml' goals: 'package' From 116eded698d6174ad9246a9abb8a050761352337 Mon Sep 17 00:00:00 2001 From: Anand Mohan Date: Thu, 2 Jan 2025 20:18:34 -0800 Subject: [PATCH 4/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 005cf7638..974e59e4b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,3 +20,10 @@ steps: publishJUnitResults: true testResultsFiles: '**/TEST-*.xml' goals: 'package' + +- task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: "JaCoCo" + summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/site/jacoco/jacoco.xml" + reportDirectory: "$(System.DefaultWorkingDirectory)/**/site/jacoco" + failIfCoverageEmpty: true