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