Update platform for new version manifest generator (#29)

* Update build-python-packages.yml

* update platforms

* fix platform conditions

* add clean up
This commit is contained in:
Maxim Lobanov
2020-06-03 20:38:34 +03:00
committed by GitHub
parent 06026eac83
commit 2a3a8176d7
7 changed files with 28 additions and 61 deletions

View File

@@ -7,6 +7,13 @@ jobs:
- checkout: self
submodules: true
- task: PowerShell@2
displayName: Fully cleanup the toolcache directory before testing
inputs:
targetType: filePath
filePath: helpers/clean-toolcache.ps1
arguments: -ToolName "Python"
- task: DownloadPipelineArtifact@2
inputs:
source: 'current'
@@ -24,7 +31,7 @@ jobs:
inputs:
TargetType: inline
script: |
if ($env:PLATFORM -match 'windows') { powershell ./setup.ps1 } else { sh ./setup.sh }
if ($env:PLATFORM -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh }
workingDirectory: '$(Build.BinariesDirectory)'
- task: UsePythonVersion@0
@@ -40,7 +47,7 @@ jobs:
script: |
Invoke-Expression "python ./sources/python-config-output.py"
workingDirectory: '$(Build.SourcesDirectory)/tests'
condition: ne(variables['Platform'], 'windows-2016')
condition: ne(variables['Platform'], 'win32')
- task: PowerShell@2
displayName: 'Verbose python binary links'
@@ -48,9 +55,9 @@ jobs:
TargetType: inline
script: |
$pythonLocation = which python
if ($env:PLATFORM -match 'macos') { otool -L $pythonLocation } else { ldd $pythonLocation }
if ($env:PLATFORM -match 'darwin') { otool -L $pythonLocation } else { ldd $pythonLocation }
workingDirectory: '$(Build.BinariesDirectory)'
condition: ne(variables['Platform'], 'windows-2016')
condition: ne(variables['Platform'], 'win32')
- task: PowerShell@2
displayName: 'Run tests'