This commit is contained in:
Nick Banks 2022-04-12 16:04:02 -04:00 коммит произвёл GitHub
Родитель cc88e9abc5
Коммит d10c16ae11
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 62 добавлений и 21 удалений

Просмотреть файл

@ -817,25 +817,30 @@ stages:
# Distribution
#
- ${{ if not(eq(variables['Build.Reason'], 'Schedule')) }}:
- stage: distribution
displayName: Distribution
dependsOn:
- build_windows_release
- build_linux_release
- build_windows_debug
- build_linux_debug
- build_windows_nontest
- build_linux_nontest
- merge_darwin
jobs:
- template: ./templates/build-distribution.yml
- stage: distribution
displayName: Distribution
dependsOn:
- build_windows_release
- build_linux_release
- build_windows_debug
- build_linux_debug
- build_windows_nontest
- build_linux_nontest
- merge_darwin
jobs:
- template: ./templates/build-distribution.yml
- ${{ if not(eq(variables['Build.Reason'], 'Schedule')) }}:
- stage: nuget
displayName: Nuget
dependsOn:
- build_windows_release
- build_windows_nontest
jobs:
- template: ./templates/build-nuget.yml
- stage: test_distribution
displayName: Test Distribution
dependsOn:
- distribution
jobs:
- template: ./templates/test-distribution.yml
- stage: nuget
displayName: Nuget
dependsOn:
- build_windows_release
- build_windows_nontest
jobs:
- template: ./templates/build-nuget.yml

Просмотреть файл

@ -0,0 +1,32 @@
jobs:
- job: test_distribution
displayName: Test Distribution
variables:
- name: runCodesignValidationInjection
value: false
- name: skipComponentGovernanceDetection
value: true
pool:
vmImage: ubuntu-latest
steps:
- task: DownloadBuildArtifacts@0
displayName: Download Test
inputs:
artifactName: artifacts
itemPattern: artifacts/bin/linux/x64_Release_openssl/msquictest
downloadPath: $(Build.SourcesDirectory)
- task: DownloadBuildArtifacts@0
displayName: Download Package
inputs:
artifactName: distribution
itemPattern: distribution/*.deb
downloadPath: $(Build.SourcesDirectory)
- pwsh: |
sudo apt-add-repository ppa:lttng/stable-2.12
sudo apt-get update
sudo apt-get install -y lttng-tools
sudo dpkg -i $(Build.SourcesDirectory)/distribution/libmsquic_2.1.0_amd64.deb
- pwsh: |
chmod +x $(Build.SourcesDirectory)/artifacts/bin/linux/x64_Release_openssl/msquictest
$(Build.SourcesDirectory)/artifacts/bin/linux/x64_Release_openssl/msquictest --gtest_filter=ParameterValidation.ValidateApi

Просмотреть файл

@ -32,6 +32,7 @@ $FrameworkInfoFile = Join-Path $RootDir "src" "distribution" "Info.plist"
$CMakeFile = Join-Path $RootDir "CMakeLists.txt"
$VersionsWriteFile = Join-Path $RootDir "scripts" "write-versions.ps1"
$CargoFile = Join-Path $RootDir "Cargo.toml"
$TestDistFile = Join-Path $RootDir ".azure" "templates" "test-distribution.yml"
# Get the current version number from the msquic.ver file.
$VerMajor = (Select-String -Path $MsQuicVerFilePath "#define VER_MAJOR (.*)" -AllMatches).Matches[0].Groups[1].Value
@ -83,3 +84,6 @@ Write-Host " New version: $NewVerMajor.$NewVerMinor.$NewVerPatch"
(Get-Content $CargoFile) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $CargoFile
(Get-Content $TestDistFile) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $TestDistFile