From 363c5ac4a8eee374bb461c2b7d307f2c641fe5e3 Mon Sep 17 00:00:00 2001 From: Tom FitzMacken Date: Tue, 14 May 2019 15:05:43 -0700 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..2698f6558 --- /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: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: false + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 0c382f5a1ff99e21041dab0cee42146066895c27 Mon Sep 17 00:00:00 2001 From: Tom FitzMacken Date: Tue, 14 May 2019 15:16:38 -0700 Subject: [PATCH 2/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2698f6558..a32dcb0a3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,3 +20,9 @@ steps: publishJUnitResults: false 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 From 7a367ca2db2cb9ef45421ede2784f66cdb4c0c52 Mon Sep 17 00:00:00 2001 From: Tom FitzMacken Date: Tue, 14 May 2019 15:34:20 -0700 Subject: [PATCH 3/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a32dcb0a3..ba33cc14c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,18 @@ trigger: - master +strategy: + matrix: + linux: + imageName: "ubuntu-16.04" + mac: + imageName: "macos-10.13" + windows: + imageName: "vs2017-win2016" + maxParallel: 3 + pool: - vmImage: 'ubuntu-latest' + vmImage: $(imageName) steps: - task: Maven@3 From d34e1d8cb7e9a215723b5af01801bef3e4db2018 Mon Sep 17 00:00:00 2001 From: Tom FitzMacken Date: Tue, 14 May 2019 15:51:42 -0700 Subject: [PATCH 4/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ba33cc14c..458c81000 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,31 +8,25 @@ trigger: strategy: matrix: - linux: + jdk10_linux: imageName: "ubuntu-16.04" - mac: - imageName: "macos-10.13" - windows: + jdk_version: "1.10" + jdk11_windows: imageName: "vs2017-win2016" - maxParallel: 3 + jdk_version: "1.11" + maxParallel: 2 pool: vmImage: $(imageName) steps: -- task: Maven@3 - inputs: - mavenPomFile: 'pom.xml' - mavenOptions: '-Xmx3072m' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.8' - jdkArchitectureOption: 'x64' - publishJUnitResults: false - 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 + - task: Maven@3 + inputs: + mavenPomFile: "pom.xml" + mavenOptions: "-Xmx3072m" + javaHomeOption: "JDKVersion" + jdkVersionOption: $(jdk_version) + jdkArchitectureOption: "x64" + publishJUnitResults: true + testResultsFiles: "**/TEST-*.xml" + goals: "package" \ No newline at end of file