2018-09-24 11:44:50 +00:00
|
|
|
steps:
|
|
|
|
- checkout: self
|
2019-01-22 18:49:52 +00:00
|
|
|
clean: false
|
2018-09-24 11:44:50 +00: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 18:49:52 +00:00
|
|
|
#Write-Host '##vso[task.setvariable variable=Py_OutDir]$(Build.BinariesDirectory)\bin'
|
2019-01-10 00:19:29 +00:00
|
|
|
Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals'
|
2018-09-24 11:44:50 +00:00
|
|
|
displayName: Update build locations
|
|
|
|
|
|
|
|
- script: PCbuild\build.bat -e $(buildOpt)
|
|
|
|
displayName: 'Build CPython'
|
2018-12-11 02:52:57 +00:00
|
|
|
env:
|
|
|
|
IncludeUwp: true
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
- script: python.bat -m test.pythoninfo
|
|
|
|
displayName: 'Display build info'
|
2019-11-20 17:30:47 +00:00
|
|
|
condition: and(succeeded(), variables['testRunPlatform'])
|
2018-09-24 11:44:50 +00:00
|
|
|
|
2018-11-17 12:14:36 +00: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 11:44:50 +00:00
|
|
|
displayName: 'Tests'
|
2019-11-20 17:30:47 +00:00
|
|
|
condition: and(succeeded(), variables['testRunPlatform'])
|
2018-09-24 11:44:50 +00:00
|
|
|
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)
|
2019-11-20 17:30:47 +00:00
|
|
|
condition: and(succeededOrFailed(), variables['testRunPlatform'])
|