diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..974e59e4b --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,29 @@ +# 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' # other options: 'macOS-latest', 'windows-latest' + +steps: +- task: Maven@4 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: 'default' + jdkArchitectureOption: 'x64' + 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