[vcpkg-ci] Always publish file lists (#12384)

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
ras0219 2020-07-13 12:14:51 -07:00 committed by GitHub
parent 713950c89b
commit bc07f4b052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 11 deletions

View File

@ -51,11 +51,11 @@ jobs:
- bash: |
python3 scripts/file_script.py /mnt/vcpkg-ci/installed/vcpkg/info/
displayName: 'Build a file list for all packages'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Upload file lists for all packages'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: always()
inputs:
PathtoPublish: scripts/list_files

View File

@ -55,11 +55,11 @@ jobs:
- bash: |
python3 scripts/file_script.py /Users/vagrant/Data/installed/vcpkg/info/
displayName: 'Build a file list for all packages'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Upload file lists for all packages'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: always()
inputs:
PathtoPublish: scripts/list_files

View File

@ -63,7 +63,7 @@ jobs:
condition: failed()
- task: PowerShell@2
displayName: "Generating all packages files"
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: always()
inputs:
targetType: inline
@ -73,7 +73,7 @@ jobs:
& $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\
- task: PublishBuildArtifacts@1
displayName: 'Upload file lists for all packages'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: always()
inputs:
PathtoPublish: scripts/list_files
ArtifactName: "${{ parameters.triplet }} package file lists"

View File

@ -28,11 +28,14 @@ def main(path):
except FileExistsError:
print("Path already exists, continuing...")
headers = open("scripts/list_files/VCPKGHeadersDatabase.txt", mode='w')
output = open("scripts/list_files/VCPKGDatabase.txt", mode='w')
gen_all_file_strings(path, getFiles(path), headers, output)
headers.close()
output.close()
try:
headers = open("scripts/list_files/VCPKGHeadersDatabase.txt", mode='w')
output = open("scripts/list_files/VCPKGDatabase.txt", mode='w')
gen_all_file_strings(path, getFiles(path), headers, output)
headers.close()
output.close()
except e:
print("Failed to generate file lists")
if __name__ == "__main__":
main(sys.argv[1])