From 7a9d0c329a78d3e0e5f6a598bacd9146cd7aad10 Mon Sep 17 00:00:00 2001 From: Charlie Date: Tue, 11 Jul 2023 21:00:34 -0600 Subject: [PATCH 1/2] 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..7438c7453 --- /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.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From b6f442eff2e14312d21ca041b5c20a6fe221b7d3 Mon Sep 17 00:00:00 2001 From: Charlie Date: Tue, 11 Jul 2023 21:54:17 -0600 Subject: [PATCH 2/2] 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 7438c7453..cfe0d9f6f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,3 +20,10 @@ steps: publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package' + +- task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: "JaCoCo" + summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/site/jacoco/jacoco.xml" + reportDirectory: "$(System.DefaultWorkingDirectory)/**/site/jacoco" + failIfCoverageEmpty: true \ No newline at end of file