2018-09-24 09:43:33 -03:00
|
|
|
steps:
|
|
|
|
- checkout: self
|
2019-01-22 16:31:30 -04:00
|
|
|
clean: false
|
2018-09-24 09:43:33 -03:00
|
|
|
fetchDepth: 5
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
# Relocate build outputs outside of source directory to make cleaning faster
|
|
|
|
Write-Host '##vso[task.setvariable variable=Py_IntDir]$(Build.BinariesDirectory)\obj'
|
|
|
|
# UNDONE: Do not build to a different directory because of broken tests
|
|
|
|
Write-Host '##vso[task.setvariable variable=Py_OutDir]$(Build.SourcesDirectory)\PCbuild'
|
2019-01-22 16:31:30 -04:00
|
|
|
#Write-Host '##vso[task.setvariable variable=Py_OutDir]$(Build.BinariesDirectory)\bin'
|
2019-01-09 20:46:40 -04:00
|
|
|
Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals'
|
2018-09-24 09:43:33 -03:00
|
|
|
displayName: Update build locations
|
|
|
|
|
|
|
|
- script: PCbuild\build.bat -e $(buildOpt)
|
|
|
|
displayName: 'Build CPython'
|
2018-12-10 23:58:52 -04:00
|
|
|
env:
|
|
|
|
IncludeUwp: true
|
2018-09-24 09:43:33 -03:00
|
|
|
|
|
|
|
- script: python.bat -m test.pythoninfo
|
|
|
|
displayName: 'Display build info'
|
|
|
|
|
2018-11-17 08:31:47 -04:00
|
|
|
- script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml" --tempdir="$(Build.BinariesDirectory)\test"
|
2018-09-24 09:43:33 -03:00
|
|
|
displayName: 'Tests'
|
|
|
|
env:
|
|
|
|
PREFIX: $(Py_OutDir)\$(arch)
|
|
|
|
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
displayName: 'Publish Test Results'
|
|
|
|
inputs:
|
|
|
|
testResultsFiles: '$(Build.BinariesDirectory)\test-results.xml'
|
|
|
|
mergeTestResults: true
|
|
|
|
testRunTitle: $(testRunTitle)
|
|
|
|
platform: $(testRunPlatform)
|
|
|
|
condition: succeededOrFailed()
|