From c4099ebae963f6e522409a2386eaf01e015b9bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aivaras=20=C5=A0imulis?= Date: Fri, 13 Mar 2020 14:24:29 +0200 Subject: [PATCH 1/5] 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..03897a827 --- /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: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From f49a3e426ad550077803f2c90743ca2d90186308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aivaras=20=C5=A0imulis?= Date: Fri, 13 Mar 2020 14:27:58 +0200 Subject: [PATCH 2/5] 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 03897a827..cae3d6e25 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: 'ubuntu-latest' + vmImage: 'vs2017-win2016' steps: - task: Maven@3 From b550e9d2f58f9365c979555c092ada62d11da7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aivaras=20=C5=A0imulis?= Date: Fri, 13 Mar 2020 14:29:19 +0200 Subject: [PATCH 3/5] 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 cae3d6e25..60c771adc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,3 +20,9 @@ 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 From a9bfd23f5eda2b534b51c6b8d7412ac6838155a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aivaras=20=C5=A0imulis?= Date: Fri, 13 Mar 2020 14:32:09 +0200 Subject: [PATCH 4/5] 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 60c771adc..c8d548057 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.14" + windows: + imageName: "vs2017-win2016" + maxParallel: 3 + pool: - vmImage: 'vs2017-win2016' + vmImage: $(imageName) steps: - task: Maven@3 From 93df5150c67b23a7c46edecb8673c5ddf81ec6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aivaras=20=C5=A0imulis?= Date: Fri, 13 Mar 2020 14:37:11 +0200 Subject: [PATCH 5/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c8d548057..55bdc44e7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,13 +8,13 @@ trigger: strategy: matrix: - linux: + jdk10_linux: imageName: "ubuntu-16.04" - mac: - imageName: "macos-10.14" - windows: + jdk_version: "1.10" + jdk11_windows: imageName: "vs2017-win2016" - maxParallel: 3 + jdk_version: "1.11" + maxParallel: 2 pool: vmImage: $(imageName) @@ -25,7 +25,7 @@ steps: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.8' + jdkVersionOption: $(jdk_version) jdkArchitectureOption: 'x64' publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml'