From 3834fbb0bc357d6c40c19ab3be7ba3ce48726b4d Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Tue, 9 Nov 2021 15:41:44 -0800 Subject: [PATCH] Make live tests to build Storage samples with Curl transport (#1997) * Make live tests to build Storage samples with Curl transport Co-authored-by: Anton Kolesnyk --- .../templates/jobs/archetype-sdk-tests.yml | 62 ++++++++++--------- .../templates/stages/archetype-sdk-client.yml | 1 + 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index 28ad3a2c8c..f9c7f345d3 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -33,36 +33,38 @@ jobs: build.args: ' -DTRANSPORT_PAHO=ON' test_type: 'iot' os: 'macos' - # Disable live testing for these matrix entries until we have something to - # test here. - # Linux_x64_with_samples: - # Pool: azsdk-pool-mms-ubuntu-1804-general - # OSVmImage: MMSUbuntu18.04 - # vcpkg.deps: 'curl[ssl]' - # VCPKG_DEFAULT_TRIPLET: 'x64-linux' - # build.args: ' -DTRANSPO.RT_CURL=ON -DAZ_PLATFORM_IMPL=POSIX' - # Win_x86_with_sampldes: - # Pool: azsdk-pool-mms-win-2019-general - # OSVmImage: MMS2019 - # vcpkg.deps: 'curl[winssl]' - # VCPKG_DEFAULT_TRIPLET: 'x86-windows-static' - # CMAKE_GENERATOR: 'Visual Studio 16 2019' - # CMAKE_GENERATOR_PLATFORM: Win32 - # build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=WIN32' - # Win_x64_with_samples: - # Pool: azsdk-pool-mms-win-2019-general - # OSVmImage: MMS2019 - # vcpkg.deps: 'curl[winssl]' - # VCPKG_DEFAULT_TRIPLET: 'x64-windows-static' - # CMAKE_GENERATOR: 'Visual Studio 16 2019' - # CMAKE_GENERATOR_PLATFORM: x64 - # build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=WIN32' - # MacOS_x64_with_samples: - # Pool: Azure Pipelines - # OSVmImage: 'macOS-10.15' - # vcpkg.deps: 'curl[ssl]' - # VCPKG_DEFAULT_TRIPLET: 'x64-osx' - # build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=POSIX' + Linux_x64_with_samples: + Pool: azsdk-pool-mms-ubuntu-1804-general + OSVmImage: MMSUbuntu18.04 + vcpkg.deps: 'curl[ssl]' + VCPKG_DEFAULT_TRIPLET: 'x64-linux' + build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=POSIX' + os: 'linux' + Win_x86_with_samples: + Pool: azsdk-pool-mms-win-2019-general + OSVmImage: MMS2019 + vcpkg.deps: 'curl[winssl]' + VCPKG_DEFAULT_TRIPLET: 'x86-windows-static' + CMAKE_GENERATOR: 'Visual Studio 16 2019' + CMAKE_GENERATOR_PLATFORM: Win32 + build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=WIN32' + os: 'win' + Win_x64_with_samples: + Pool: azsdk-pool-mms-win-2019-general + OSVmImage: MMS2019 + vcpkg.deps: 'curl[winssl]' + VCPKG_DEFAULT_TRIPLET: 'x64-windows-static' + CMAKE_GENERATOR: 'Visual Studio 16 2019' + CMAKE_GENERATOR_PLATFORM: x64 + build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=WIN32' + os: 'win' + MacOS_x64_with_samples: + Pool: Azure Pipelines + OSVmImage: 'macOS-10.15' + vcpkg.deps: 'curl[ssl]' + VCPKG_DEFAULT_TRIPLET: 'x64-osx' + build.args: ' -DTRANSPORT_CURL=ON -DAZ_PLATFORM_IMPL=POSIX' + os: 'macos' pool: name: $(Pool) vmImage: $(OSVmImage) diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index f2e6a9365d..ee5d0e622a 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -24,6 +24,7 @@ stages: - Name: Storage Blobs NonWindowsPath: ./build/sdk/samples/storage/blobs/blobs_client_sample WindowsPath: build\sdk\samples\storage\blobs\debug\blobs_client_sample.exe + RunCondition: contains(variables['build.args'], '-DTRANSPORT_CURL=ON') - ${{ if and(eq(variables['Build.Reason'], 'Manual'), eq(variables['System.TeamProject'], 'internal'), not(endsWith(variables['Build.DefinitionName'], ' - tests'))) }}: - template: archetype-c-release.yml