diff options
| author | Leo Yao <yaoleo34@gmail.com> | 2020-07-06 13:38:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-06 13:38:22 -0700 |
| commit | aa2b9ef32e0c9318e4416d4893b38c5aa230f000 (patch) | |
| tree | 0f582c938abb1bdb70ff3b54ec74c694b0efa195 /scripts/azure-pipelines | |
| parent | 89746990b73618255b0c2e602c8e0a8d233831c9 (diff) | |
| download | vcpkg-aa2b9ef32e0c9318e4416d4893b38c5aa230f000.tar.gz vcpkg-aa2b9ef32e0c9318e4416d4893b38c5aa230f000.zip | |
[vcpkg] Added python script to generate all packages file list, added to azur… (#12177)
* Added python script to generate all packages file list, added to azure pipeline to build at the end of the run
* fixed an issue that causes some leading slashes were being removed
* Header Database now includes hpp files for C++ header files
* Changed Header Database to include all files under \include\ folder
* Apply suggestions from code review, changing condition from eq to ne
Co-authored-by: Billy O'Neal <bion@microsoft.com>
* Update last condition from eq to ne
Co-authored-by: Billy O'Neal <bion@microsoft.com>
Diffstat (limited to 'scripts/azure-pipelines')
| -rw-r--r-- | scripts/azure-pipelines/linux/azure-pipelines.yml | 12 | ||||
| -rw-r--r-- | scripts/azure-pipelines/osx/azure-pipelines.yml | 12 | ||||
| -rw-r--r-- | scripts/azure-pipelines/windows/azure-pipelines.yml | 16 |
3 files changed, 40 insertions, 0 deletions
diff --git a/scripts/azure-pipelines/linux/azure-pipelines.yml b/scripts/azure-pipelines/linux/azure-pipelines.yml index 65d6d3f1d..e32f98331 100644 --- a/scripts/azure-pipelines/linux/azure-pipelines.yml +++ b/scripts/azure-pipelines/linux/azure-pipelines.yml @@ -48,3 +48,15 @@ jobs: PathtoPublish: '$(System.ArtifactsDirectory)/failure-logs'
ArtifactName: 'x64-linux port build failure logs'
condition: failed()
+ - 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'))
+
+ - task: PublishBuildArtifacts@1
+ displayName: 'Upload file lists for all packages'
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
+
+ inputs:
+ PathtoPublish: scripts/list_files
+ ArtifactName: "x64-linux package file lists"
diff --git a/scripts/azure-pipelines/osx/azure-pipelines.yml b/scripts/azure-pipelines/osx/azure-pipelines.yml index 33685fd6b..580eeac50 100644 --- a/scripts/azure-pipelines/osx/azure-pipelines.yml +++ b/scripts/azure-pipelines/osx/azure-pipelines.yml @@ -52,3 +52,15 @@ jobs: PathtoPublish: '$(System.ArtifactsDirectory)/failure-logs'
ArtifactName: 'x64-osx port build failure logs'
condition: failed()
+ - 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'))
+
+ - task: PublishBuildArtifacts@1
+ displayName: 'Upload file lists for all packages'
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
+
+ inputs:
+ PathtoPublish: scripts/list_files
+ ArtifactName: "x64-osx package file lists"
diff --git a/scripts/azure-pipelines/windows/azure-pipelines.yml b/scripts/azure-pipelines/windows/azure-pipelines.yml index d7f34b3c7..a76b6afdf 100644 --- a/scripts/azure-pipelines/windows/azure-pipelines.yml +++ b/scripts/azure-pipelines/windows/azure-pipelines.yml @@ -61,3 +61,19 @@ jobs: PathtoPublish: '$(System.ArtifactsDirectory)\failure-logs'
ArtifactName: '${{ parameters.triplet }} port build failure logs'
condition: failed()
+ - task: PowerShell@2
+ displayName: "Generating all packages files"
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
+
+ inputs:
+ targetType: inline
+ script: |
+ $env:VCPKG_DOWNLOADS = "D:\downloads"
+ ./vcpkg.exe fetch python3
+ & $(.\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'))
+ inputs:
+ PathtoPublish: scripts/list_files
+ ArtifactName: "${{ parameters.triplet }} package file lists"
|
