2021-11-10 14:18:55 -05:00
|
|
|
jobs:
|
2021-11-16 09:26:53 -05:00
|
|
|
- ${{ each image in parameters.images }}:
|
|
|
|
- ${{ each jdkVersion in image.jdkVersions }}:
|
2021-11-10 14:18:55 -05:00
|
|
|
- job:
|
|
|
|
|
2021-11-16 09:26:53 -05:00
|
|
|
displayName: ${{image.name}}_${{jdkVersion}}
|
2021-11-10 14:18:55 -05:00
|
|
|
|
|
|
|
pool:
|
2021-11-16 09:26:53 -05:00
|
|
|
vmImage: ${{image.name}}
|
2021-11-10 14:18:55 -05:00
|
|
|
|
|
|
|
variables:
|
2021-11-16 09:26:53 -05:00
|
|
|
currentImage: ${{image.name}}
|
2021-11-10 14:18:55 -05:00
|
|
|
codecov: $(CODECOV_TOKEN)
|
|
|
|
VERSION:
|
2022-08-19 10:18:36 -04:00
|
|
|
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
|
2021-11-10 14:18:55 -05:00
|
|
|
|
|
|
|
steps:
|
2022-06-14 17:04:00 -04:00
|
|
|
# Runs 'mvn clean install'
|
2021-11-10 14:18:55 -05:00
|
|
|
- task: Maven@3
|
|
|
|
inputs:
|
|
|
|
mavenPomFile: 'pom.xml'
|
|
|
|
mavenOptions: '-Xmx3072m'
|
|
|
|
javaHomeOption: 'JDKVersion'
|
|
|
|
jdkVersionOption: '${{jdkVersion}}'
|
|
|
|
jdkArchitectureOption: 'x64'
|
|
|
|
publishJUnitResults: true
|
|
|
|
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
2022-06-14 17:04:00 -04:00
|
|
|
goals: 'install'
|
2021-11-10 14:18:55 -05:00
|
|
|
|
|
|
|
- task: Maven@3
|
|
|
|
inputs:
|
|
|
|
mavenPomFile: 'pom.xml'
|
|
|
|
mavenOptions: '-Xmx3072m'
|
|
|
|
javaHomeOption: 'JDKVersion'
|
|
|
|
jdkVersionOption: '${{jdkVersion}}'
|
|
|
|
jdkArchitectureOption: 'x64'
|
|
|
|
options: '-pl org.hl7.fhir.validation.cli'
|
|
|
|
publishJUnitResults: false
|
|
|
|
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
|
|
|
goals: 'exec:exec'
|
|
|
|
|
|
|
|
# Upload test results to codecov
|
|
|
|
- script: bash <(curl https://codecov.io/bash) -t $(codecov)
|
|
|
|
displayName: 'codecov Bash Uploader'
|
|
|
|
condition: eq(variables.currentImage, 'ubuntu-latest')
|
|
|
|
|
|
|
|
# Publishes the test results to build artifacts.
|
|
|
|
- task: PublishCodeCoverageResults@1
|
|
|
|
displayName: 'Publish JaCoCo test results'
|
|
|
|
condition: eq(variables.currentImage, 'ubuntu-latest')
|
|
|
|
inputs:
|
|
|
|
codeCoverageTool: 'JaCoCo'
|
|
|
|
summaryFileLocation: '$(System.DefaultWorkingDirectory)/org.hl7.fhir.report/target/site/jacoco-aggregate/jacoco.xml'
|
2022-08-19 10:18:36 -04:00
|
|
|
reportDirectory: '$(System.DefaultWorkingDirectory)/org.hl7.fhir.report/target/site/jacoco-aggregate/'
|