blob: c3175841a9b857d38b709576645413ddcd649f28 [file] [log] [blame]
Steve Dower57675092018-09-24 07:44:50 -04001steps:
2- checkout: self
3 clean: true
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=EXTERNAL_DIR]$(Build.BinariesDirectory)\externals'
12 displayName: Update build locations
13
14- script: PCbuild\build.bat -e $(buildOpt)
15 displayName: 'Build CPython'
16
17- script: python.bat -m test.pythoninfo
18 displayName: 'Display build info'
19
Steve Dower38df97a2018-11-17 04:14:36 -080020- 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 -040021 displayName: 'Tests'
22 env:
23 PREFIX: $(Py_OutDir)\$(arch)
24
25- task: PublishTestResults@2
26 displayName: 'Publish Test Results'
27 inputs:
28 testResultsFiles: '$(Build.BinariesDirectory)\test-results.xml'
29 mergeTestResults: true
30 testRunTitle: $(testRunTitle)
31 platform: $(testRunPlatform)
32 condition: succeededOrFailed()