-
Notifications
You must be signed in to change notification settings - Fork 57
/
build-and-exec-jobs-template.yml
69 lines (57 loc) · 2.31 KB
/
build-and-exec-jobs-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
jobs:
- ${{ each execTest in parameters.execTests }}:
- job:
displayName: Test publisher.jar exec on ${{execTest.igName}} ${{execTest.vmImage}}
pool:
vmImage: ${{execTest.vmImage}}
variables:
currentImage: ${{execTest.vmImage}}
VERSION:
JAVA_TOOL_OPTIONS: ${{execTest.javaToolOptions}}
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 3.0'
- script : |
ridk install 3
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: 'ridk for ruby install'
- script: |
gem install jekyll bundler
bundle init
bundle update --bundler
bundle install --retry=3 --jobs=4
displayName: 'jekyll install'
- script: |
npm install -g fsh-sushi
displayName: 'fsh-sushi install'
# Runs 'mvn install'
- task: Maven@4
displayName: 'Build project'
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
options: '-DskipTests'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '${{execTest.jdkVersion}}'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'install'
- task: Bash@3
displayName: 'Clone target IG'
inputs:
targetType: 'inline'
script: mkdir -p $(Pipeline.Workspace)/target-ig; git clone ${{execTest.gitRepo}} "$(Pipeline.Workspace)/target-ig"
- task: Maven@4
displayName: 'Run IG Publisher with IG'
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '${{execTest.jdkVersion}}'
jdkArchitectureOption: 'x64'
options: '-pl org.hl7.fhir.publisher.cli -Dpublisher.cli.exec.target-ig="$(Pipeline.Workspace)/target-ig"'
publishJUnitResults: false
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'org.codehaus.mojo:exec-maven-plugin:exec@target-ig-cli'