Enables test result collection for CI builds (GH-9433)

This commit is contained in:
Steve Dower 2018-09-19 16:25:25 -07:00 committed by Miss Islington (bot)
parent 06e7608207
commit fd54a45f79
3 changed files with 30 additions and 3 deletions

View File

@ -46,5 +46,14 @@ steps:
- script: make pythoninfo
displayName: 'Display build info'
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
displayName: 'Tests'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '$(build.binariesDirectory)/test-results.xml'
mergeTestResults: true
testRunTitle: '$(build.sourceBranchName)-linux'
platform: linux
condition: succeededOrFailed()

View File

@ -33,5 +33,14 @@ steps:
- script: make pythoninfo
displayName: 'Display build info'
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
displayName: 'Tests'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '$(build.binariesDirectory)/test-results.xml'
mergeTestResults: true
testRunTitle: '$(build.sourceBranchName)-macOS'
platform: macOS
condition: succeededOrFailed()

View File

@ -43,7 +43,16 @@ steps:
- script: python.bat -m test.pythoninfo
displayName: 'Display build info'
- script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
- script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml"
displayName: 'Tests'
env:
PREFIX: $(Py_OutDir)\$(outDirSuffix)
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '$(Build.BinariesDirectory)\test-results.xml'
mergeTestResults: true
testRunTitle: '$(Build.SourceBranchName)-$(outDirSuffix)'
platform: $(outDirSuffix)
condition: succeededOrFailed()