Add git push, add comments, set to trigger on master.
This commit is contained in:
parent
e24f98827f
commit
bebc2a6eb9
|
@ -1,10 +1,15 @@
|
||||||
# We only want to trigger a test build on PRs to the main branch.
|
# This pipeline runs the internationalization coverage test and then uses a
|
||||||
trigger: none
|
# python script to generate a table from the results for viewing in the
|
||||||
|
# README.md file
|
||||||
|
pr: none
|
||||||
|
|
||||||
pr:
|
trigger:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
# Normally this test outputs to console. This variable appears as env param
|
||||||
|
# I18N_COVERAGE_FILE, which tells the test to write the output to a file
|
||||||
|
# instead.
|
||||||
- name: i18n.coverage.file
|
- name: i18n.coverage.file
|
||||||
value: i18n-coverage.csv
|
value: i18n-coverage.csv
|
||||||
- group: PGP_VAR_GROUP
|
- group: PGP_VAR_GROUP
|
||||||
|
@ -39,6 +44,8 @@ jobs:
|
||||||
jdkVersionOption: '1.11'
|
jdkVersionOption: '1.11'
|
||||||
jdkArchitectureOption: 'x64'
|
jdkArchitectureOption: 'x64'
|
||||||
goals: 'install'
|
goals: 'install'
|
||||||
|
displayName: 'Build utilities module'
|
||||||
|
|
||||||
- task: Maven@3
|
- task: Maven@3
|
||||||
inputs:
|
inputs:
|
||||||
mavenPomFile: 'pom.xml'
|
mavenPomFile: 'pom.xml'
|
||||||
|
@ -48,13 +55,27 @@ jobs:
|
||||||
jdkVersionOption: '1.11'
|
jdkVersionOption: '1.11'
|
||||||
jdkArchitectureOption: 'x64'
|
jdkArchitectureOption: 'x64'
|
||||||
goals: 'surefire:test'
|
goals: 'surefire:test'
|
||||||
|
displayName: 'Run i18n coverage test to generate csv'
|
||||||
|
|
||||||
- task: PythonScript@0
|
- task: PythonScript@0
|
||||||
inputs:
|
inputs:
|
||||||
scriptSource: 'filePath'
|
scriptSource: 'filePath'
|
||||||
scriptPath: .azure/i18n-coverage-table/generate-i18n-coverage-table.py
|
scriptPath: .azure/i18n-coverage-table/generate-i18n-coverage-table.py
|
||||||
arguments:
|
arguments:
|
||||||
|
displayName: 'Make png table from coverage test csv'
|
||||||
|
|
||||||
# Verify png file generation
|
# Verify png file generation
|
||||||
- bash: |
|
- bash: |
|
||||||
ls -l ./i18n-coverage-table.png
|
ls -l ./i18n-coverage-table.png
|
||||||
|
|
||||||
|
- bash: |
|
||||||
|
git fetch
|
||||||
|
git checkout master
|
||||||
|
git status
|
||||||
|
git add ./i18n-coverage.csv
|
||||||
|
git add ./i18n-coverage-table.png
|
||||||
|
git commit . -m "Updating i18n-coverage csv and png table ***NO_CI***"
|
||||||
|
|
||||||
|
git push https://$(GIT_PAT)@github.com/hapifhir/org.hl7.fhir.core.git
|
||||||
|
|
||||||
|
displayName: 'Push updated csv and plot to git.'
|
Loading…
Reference in New Issue