Combining all wheels into one folder

This commit is contained in:
Thomas Ferreira de Lima 2019-01-02 02:35:36 -05:00
parent 923d083ab4
commit 2b2b38d160
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 58 additions and 7 deletions

View File

@ -1,28 +1,28 @@
# https://aka.ms/yaml
jobs:
- job: 'Build'
- job: Build
pool:
vmImage: 'vs2017-win2016' # other options: 'macOS-10.13', 'ubuntu-16.04'
strategy:
matrix:
# Python27:
# python.version: '2.7'
Python35:
cp35-cp35m-win_amd64.whl:
python.version: '3.5'
python.architecture: 'x64'
Python36:
cp36-cp36m-win_amd64.whl:
python.version: '3.6'
python.architecture: 'x64'
Python37:
cp37-cp37m-win_amd64.whl:
python.version: '3.7'
python.architecture: 'x64'
Python35_x86:
cp35-cp35m-win32.whl:
python.version: '3.5'
python.architecture: 'x86'
Python36_x86:
cp36-cp36m-win32.whl:
python.version: '3.6'
python.architecture: 'x86'
Python37_x86:
cp37-cp37m-win32.whl:
python.version: '3.7'
python.architecture: 'x86'
maxParallel: 6
@ -99,3 +99,54 @@ jobs:
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'wheel-$(python.version).$(python.architecture)'
- job: 'Deploy'
displayName: 'Combine Windows wheels'
dependsOn: Build
pool:
vmImage: 'vs2017-win2016' # other options: 'macOS-10.13', 'ubuntu-16.04'
steps:
- checkout: none #skip checking out the default repository resource
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts wheel-3.7.x64'
inputs:
artifactName: 'wheel-3.7.x64'
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts wheel-3.6.x64'
inputs:
artifactName: 'wheel-3.6.x64'
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts wheel-3.5.x64'
inputs:
artifactName: 'wheel-3.5.x64'
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts wheel-3.7.x86'
inputs:
artifactName: 'wheel-3.7.x86'
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts wheel-3.6.x86'
inputs:
artifactName: 'wheel-3.6.x86'
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts wheel-3.5.x86'
inputs:
artifactName: 'wheel-3.5.x86'
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: CopyFiles@2
condition: always()
inputs:
sourceFolder: '$(System.DefaultWorkingDirectory)'
targetFolder: '$(Build.ArtifactStagingDirectory)'
contents: '**/?(*.whl)'
flattenFolders: true
- task: PublishBuildArtifacts@1
condition: always()
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'windows_wheels'