blob: 794a23a5d77e86597345a6793c7b1ef43d55a564 [file] [log] [blame]
Steve Dower57675092018-09-24 07:44:50 -04001steps:
2- checkout: self
Steve Dower28f6cb32019-01-22 10:49:52 -08003 clean: false
Steve Dower57675092018-09-24 07:44:50 -04004 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'
Steve Dower28f6cb32019-01-22 10:49:52 -080011 #Write-Host '##vso[task.setvariable variable=Py_OutDir]$(Build.BinariesDirectory)\bin'
antektek6aedfa62019-01-10 01:19:29 +010012 Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals'
Steve Dower57675092018-09-24 07:44:50 -040013 displayName: Update build locations
14
15- script: PCbuild\build.bat -e $(buildOpt)
16 displayName: 'Build CPython'
Steve Dower0cd63912018-12-10 18:52:57 -080017 env:
18 IncludeUwp: true
Steve Dower57675092018-09-24 07:44:50 -040019
20- script: python.bat -m test.pythoninfo
21 displayName: 'Display build info'
22
Steve Dower38df97a2018-11-17 04:14:36 -080023- 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 Dower57675092018-09-24 07:44:50 -040024 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()