diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-09-24 11:44:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 11:44:50 (GMT) |
commit | 57675090b0fe7d6c7d72e56384dc2ff6798f1723 (patch) | |
tree | 17a838f9f8c953cef01ccc2d32f00be980c8c8e3 /.azure-pipelines/windows-steps.yml | |
parent | 2d3ff2b5ea6c903973f99d2155c9c1b60591dceb (diff) | |
download | cpython-57675090b0fe7d6c7d72e56384dc2ff6798f1723.zip cpython-57675090b0fe7d6c7d72e56384dc2ff6798f1723.tar.gz cpython-57675090b0fe7d6c7d72e56384dc2ff6798f1723.tar.bz2 |
bpo-34582: Update syntax of Azure Pipelines builds (GH-9521)
Diffstat (limited to '.azure-pipelines/windows-steps.yml')
-rw-r--r-- | .azure-pipelines/windows-steps.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.azure-pipelines/windows-steps.yml b/.azure-pipelines/windows-steps.yml new file mode 100644 index 0000000..d8d5f17 --- /dev/null +++ b/.azure-pipelines/windows-steps.yml @@ -0,0 +1,32 @@ +steps: +- checkout: self + clean: true + 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' + Write-Host '##vso[task.setvariable variable=EXTERNAL_DIR]$(Build.BinariesDirectory)\externals' + displayName: Update build locations + +- script: PCbuild\build.bat -e $(buildOpt) + displayName: 'Build CPython' + +- script: python.bat -m test.pythoninfo + displayName: 'Display build info' + +- script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml" + displayName: 'Tests' + 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) + condition: succeededOrFailed() |