-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create execution testing pipeline (#718)
* Refactor template file names, add exec pipeline * Fix naming in exec job params * Try resources elsewhere * Try explicit checkout * Try resources again in main pipeline * Try using bash to git clone * Adjust task inputs * Aim at target ig * Install jekyll * Try another way to do jekyll install * Try gem install another way * Try jekyll install with new setup * Name tasks, add fsh-sushi install * Move git repo to a parameter * substitution fix * Try some fsh, maybe you'll like it
- Loading branch information
Showing
4 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
jobs: | ||
- ${{ each execTest in parameters.execTests }}: | ||
- job: | ||
|
||
displayName: ${{execTest.displayName}} | ||
|
||
pool: | ||
vmImage: ${{execTest.vmImage}} | ||
|
||
|
||
variables: | ||
currentImage: ${{execTest.vmImage}} | ||
VERSION: | ||
JAVA_TOOL_OPTIONS: ${{execTest.javaToolOptions}} | ||
|
||
steps: | ||
|
||
- task: UseRubyVersion@0 | ||
inputs: | ||
versionSpec: '>= 3.0' | ||
|
||
- 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 clean package' | ||
- task: Maven@3 | ||
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: 'package' | ||
|
||
- 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@3 | ||
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' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters