Enables test result collection for CI builds (GH-9433)
This commit is contained in:
parent
06e7608207
commit
fd54a45f79
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue