Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 1 | steps: |
| 2 | - checkout: self |
| 3 | clean: true |
| 4 | fetchDepth: 5 |
| 5 | |
| 6 | - powershell: | |
| 7 | # Relocate build outputs outside of source directory to make cleaning faster |
| 8 | Write-Host '##vso[task.setvariable variable=Py_IntDir]$(Build.BinariesDirectory)\obj' |
| 9 | # UNDONE: Do not build to a different directory because of broken tests |
| 10 | Write-Host '##vso[task.setvariable variable=Py_OutDir]$(Build.SourcesDirectory)\PCbuild' |
| 11 | Write-Host '##vso[task.setvariable variable=EXTERNAL_DIR]$(Build.BinariesDirectory)\externals' |
| 12 | displayName: Update build locations |
| 13 | |
| 14 | - script: PCbuild\build.bat -e $(buildOpt) |
| 15 | displayName: 'Build CPython' |
| 16 | |
| 17 | - script: python.bat -m test.pythoninfo |
| 18 | displayName: 'Display build info' |
| 19 | |
Steve Dower | 38df97a | 2018-11-17 04:14:36 -0800 | [diff] [blame^] | 20 | - script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml" --tempdir="$(Build.BinariesDirectory)\test" |
Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 21 | displayName: 'Tests' |
| 22 | env: |
| 23 | PREFIX: $(Py_OutDir)\$(arch) |
| 24 | |
| 25 | - task: PublishTestResults@2 |
| 26 | displayName: 'Publish Test Results' |
| 27 | inputs: |
| 28 | testResultsFiles: '$(Build.BinariesDirectory)\test-results.xml' |
| 29 | mergeTestResults: true |
| 30 | testRunTitle: $(testRunTitle) |
| 31 | platform: $(testRunPlatform) |
| 32 | condition: succeededOrFailed() |