Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 1 | steps: |
| 2 | - checkout: self |
Steve Dower | 28f6cb3 | 2019-01-22 10:49:52 -0800 | [diff] [blame] | 3 | clean: false |
Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 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' |
Steve Dower | 28f6cb3 | 2019-01-22 10:49:52 -0800 | [diff] [blame] | 11 | #Write-Host '##vso[task.setvariable variable=Py_OutDir]$(Build.BinariesDirectory)\bin' |
antektek | 6aedfa6 | 2019-01-10 01:19:29 +0100 | [diff] [blame] | 12 | Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals' |
Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 13 | displayName: Update build locations |
| 14 | |
| 15 | - script: PCbuild\build.bat -e $(buildOpt) |
| 16 | displayName: 'Build CPython' |
Steve Dower | 0cd6391 | 2018-12-10 18:52:57 -0800 | [diff] [blame] | 17 | env: |
| 18 | IncludeUwp: true |
Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 19 | |
| 20 | - script: python.bat -m test.pythoninfo |
| 21 | displayName: 'Display build info' |
| 22 | |
Steve Dower | 38df97a | 2018-11-17 04:14:36 -0800 | [diff] [blame] | 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" |
Steve Dower | 5767509 | 2018-09-24 07:44:50 -0400 | [diff] [blame] | 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() |