|
1 | 1 | # CppRestSdk Azure Pipelines Configuration
|
2 | 2 |
|
3 | 3 | jobs:
|
| 4 | + - job: Windows_VS2019_x86 |
| 5 | + pool: |
| 6 | + vmImage: 'windows-latest' |
| 7 | + steps: |
| 8 | + - script: .\vcpkg\bootstrap-vcpkg.bat |
| 9 | + displayName: Bootstrap vcpkg |
| 10 | + - script: .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli --vcpkg-root .\vcpkg |
| 11 | + displayName: vcpkg install dependencies |
| 12 | + - script: mkdir build.common |
| 13 | + displayName: Make Build Directory |
| 14 | + - task: CMake@1 |
| 15 | + inputs: |
| 16 | + workingDirectory: 'build.common' |
| 17 | + cmakeArgs: '-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPPREST_EXCLUDE_BROTLI=OFF ..' |
| 18 | + - task: MSBuild@1 |
| 19 | + inputs: |
| 20 | + solution: 'build.common/ALL_BUILD.vcxproj' |
| 21 | + maximumCpuCount: true |
| 22 | + - script: | |
| 23 | + cd build.common\Release\Binaries\Debug |
| 24 | + .\test_runner.exe *testd.dll |
| 25 | + displayName: 'Run tests, debug' |
| 26 | + - task: MSBuild@1 |
| 27 | + inputs: |
| 28 | + solution: 'build.common/ALL_BUILD.vcxproj' |
| 29 | + maximumCpuCount: true |
| 30 | + configuration: 'Release' |
| 31 | + - script: | |
| 32 | + cd build.common\Release\Binaries\Release |
| 33 | + .\test_runner.exe *test.dll |
| 34 | + displayName: 'Run tests, release' |
| 35 | + - job: Windows_VS2019_x64 |
| 36 | + pool: |
| 37 | + vmImage: 'windows-latest' |
| 38 | + steps: |
| 39 | + - script: .\vcpkg\bootstrap-vcpkg.bat |
| 40 | + displayName: Bootstrap vcpkg |
| 41 | + - script: .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli --triplet x64-windows --vcpkg-root .\vcpkg |
| 42 | + displayName: vcpkg install dependencies |
| 43 | + - script: mkdir build.common |
| 44 | + displayName: Make Build Directory |
| 45 | + - task: CMake@1 |
| 46 | + inputs: |
| 47 | + workingDirectory: 'build.common' |
| 48 | + cmakeArgs: '-A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPPREST_EXCLUDE_BROTLI=OFF ..' |
| 49 | + - task: MSBuild@1 |
| 50 | + inputs: |
| 51 | + solution: 'build.common/ALL_BUILD.vcxproj' |
| 52 | + maximumCpuCount: true |
| 53 | + platform: 'x64' |
| 54 | + - script: | |
| 55 | + cd build.common\Release\Binaries\Debug |
| 56 | + .\test_runner.exe *testd.dll |
| 57 | + displayName: 'Run tests, debug' |
| 58 | + - task: MSBuild@1 |
| 59 | + inputs: |
| 60 | + solution: 'build.common/ALL_BUILD.vcxproj' |
| 61 | + maximumCpuCount: true |
| 62 | + platform: 'x64' |
| 63 | + configuration: 'Release' |
| 64 | + - script: | |
| 65 | + cd build.common\Release\Binaries\Release |
| 66 | + .\test_runner.exe *test.dll |
| 67 | + displayName: 'Run tests, release' |
| 68 | + - job: Windows_VS2019_UWP |
| 69 | + pool: |
| 70 | + vmImage: 'windows-latest' |
| 71 | + steps: |
| 72 | + - script: .\vcpkg\bootstrap-vcpkg.bat |
| 73 | + displayName: Bootstrap vcpkg |
| 74 | + - script: .\vcpkg\vcpkg.exe install zlib --triplet x64-uwp --vcpkg-root .\vcpkg |
| 75 | + displayName: vcpkg install dependencies |
| 76 | + - script: mkdir build.common |
| 77 | + displayName: Make Build Directory |
| 78 | + - task: CMake@1 |
| 79 | + inputs: |
| 80 | + workingDirectory: 'build.common' |
| 81 | + cmakeArgs: '-A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 ..' |
| 82 | + - task: MSBuild@1 |
| 83 | + inputs: |
| 84 | + solution: 'build.common/ALL_BUILD.vcxproj' |
| 85 | + maximumCpuCount: true |
| 86 | + platform: 'x64' |
4 | 87 | - job: Windows_VS2017_x86
|
5 | 88 | pool:
|
6 | 89 | vmImage: 'vs2017-win2016'
|
|
0 commit comments