• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1jobs:
2- job: Test_Embed
3  displayName: Test Embed
4  condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
5
6  pool:
7    vmImage: windows-2019
8
9  workspace:
10    clean: all
11
12  strategy:
13    matrix:
14      win32:
15        Name: win32
16      amd64:
17        Name: amd64
18
19  steps:
20  - checkout: none
21
22  - task: DownloadBuildArtifacts@0
23    displayName: 'Download artifact: embed'
24    inputs:
25      artifactName: embed
26      downloadPath: $(Build.BinariesDirectory)
27
28  - powershell: |
29      $p = gi "$(Build.BinariesDirectory)\embed\python*embed-$(Name).zip"
30      Expand-Archive -Path $p -DestinationPath "$(Build.BinariesDirectory)\Python"
31      $p = gi "$(Build.BinariesDirectory)\Python\python.exe"
32      Write-Host "##vso[task.prependpath]$(Split-Path -Parent $p)"
33    displayName: 'Install Python and add to PATH'
34
35  - script: |
36      python -c "import sys; print(sys.version)"
37    displayName: 'Collect version number'
38
39  - script: |
40      python -m site
41    displayName: 'Collect site'
42