From c6377e933e2d3a73de5b467ad292b4b7e3d8ec0a Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Wed, 10 Oct 2018 15:40:26 -0700 Subject: [PATCH] Add MacOS pipelines build support. (#902) * Attempt to add MacOS pipelines support; increase parallelism to 4. * Fix "expression unused" warnings on MacOS. --- .../http/client/compression_tests.cpp | 8 ++--- azure-pipelines.yml | 36 +++++++++++++++++-- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/Release/tests/functional/http/client/compression_tests.cpp b/Release/tests/functional/http/client/compression_tests.cpp index ca2215afd9..256c174c69 100644 --- a/Release/tests/functional/http/client/compression_tests.cpp +++ b/Release/tests/functional/http/client/compression_tests.cpp @@ -761,15 +761,15 @@ SUITE(compression_tests) // No acquire(), to force non-acquire compression client codepaths virtual bool acquire(_Out_ _CharType*& ptr, _Out_ size_t& count) { - ptr; - count; + (void)ptr; + (void)count; return false; } virtual void release(_Out_writes_(count) _CharType* ptr, _In_ size_t count) { - ptr; - count; + (void)ptr; + (void)count; } static concurrency::streams::basic_istream<_CharType> open_istream(const _CharType* data, size_t size) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dab028e6fa..f49e5ecdbc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,7 +18,7 @@ jobs: cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Debug ..' - script: | cd build.debug - ninja -j 2 + ninja -j 4 displayName: 'Run ninja' - job: Ubuntu_1604_Apt_Release pool: @@ -37,5 +37,37 @@ jobs: cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release ..' - script: | cd build.release - ninja -j 2 + ninja -j 4 + displayName: 'Run ninja' + - job: MacOS_Debug + pool: + vmImage: 'macOS-10.13' + steps: + - script: brew install boost openssl ninja + displayName: Berw install dependencies + - script: mkdir build.debug + displayName: Make build.debug + - task: CMake@1 + inputs: + workingDirectory: 'build.debug' + cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Debug ..' + - script: | + cd build.debug + ninja -j 4 + displayName: 'Run ninja' + - job: MacOS_Release + pool: + vmImage: 'macOS-10.13' + steps: + - script: brew install boost openssl ninja + displayName: Berw install dependencies + - script: mkdir build.release + displayName: Make build.release + - task: CMake@1 + inputs: + workingDirectory: 'build.release' + cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release ..' + - script: | + cd build.release + ninja -j 4 displayName: 'Run ninja'