mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
* Override inheritance of HAPI's old maven-compiler-plugin and stop using deprecated forceJavacCompilerUse * Take checkstyle plugin out of default build * Use less for initial JVM opts (maybe forked compilers will need this) * Try on a mac? * Report free space, add MAVEN_OPTS * No MAVEN_OPTS? * Back to ubuntu * Try some compiler args and max mem * Try some MaxRamPercentage on surefire too * Try 75.0 MaxRamPercentage * 60? * Update surefire version, even less Xmx * Revert I18nBase style fix (get tests to pass, apply later) * Now that memory is less of an issue, try checkstyle again * Fix missing single quote * Try 50% of 7G for Xmx
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
jobs:
|
|
- job: setup
|
|
displayName: Cache Maven Artifacts and Build Targets
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
- task: Cache@2
|
|
displayName: Cache maven artifacts
|
|
inputs:
|
|
key: maven | $(Build.BuildId) | artifacts
|
|
path: $(MAVEN_CACHE_FOLDER)
|
|
- template: cache-target-tasks-template.yml
|
|
parameters:
|
|
modules:
|
|
${{ parameters.modulesToCache }}
|
|
- task: Bash@3
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: mkdir -p $(MAVEN_CACHE_FOLDER); pwd; ls -al $(MAVEN_CACHE_FOLDER)
|
|
- ${{ if eq(parameters.signArtifacts, true) }}:
|
|
- template: setup-signing-tasks-template.yml
|
|
- task: Maven@4
|
|
inputs:
|
|
mavenPomFile: 'pom.xml'
|
|
${{ if eq(parameters.signArtifacts, true) }}:
|
|
options: '--settings $(Agent.TempDirectory)/settings.xml -Dmaven.repo.local=$(MAVEN_CACHE_FOLDER) -DskipTests -DdeployToSonatype -P CHECKSTYLE'
|
|
${{ else }}:
|
|
options: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER) -DskipTests -P CHECKSTYLE'
|
|
mavenOptions: '-Xmx768m'
|
|
javaHomeOption: 'JDKVersion'
|
|
jdkVersionOption: '1.11'
|
|
jdkArchitectureOption: 'x64'
|
|
publishJUnitResults: false
|
|
goals: 'install'
|
|
- task: Bash@3
|
|
displayName: Report free disk space
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: df -H . |