1 steps: 2 - checkout: self 3 clean: false 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=Py_OutDir]$(Build.BinariesDirectory)\bin' 12 Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals' 13 displayName: Update build locations 14 15 - script: PCbuild\build.bat -e $(buildOpt) 16 displayName: 'Build CPython' 17 env: 18 IncludeUwp: true 19 20 - script: python.bat -m test.pythoninfo 21 displayName: 'Display build info' 22 23 - script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml" --tempdir="$(Build.BinariesDirectory)\test" 24 displayName: 'Tests' 25 env: 26 PREFIX: $(Py_OutDir)\$(arch) 27 28 - task: PublishTestResults@2 29 displayName: 'Publish Test Results' 30 inputs: 31 testResultsFiles: '$(Build.BinariesDirectory)\test-results.xml' 32 mergeTestResults: true 33 testRunTitle: $(testRunTitle) 34 platform: $(testRunPlatform) 35 condition: succeededOrFailed() 36