|
| 1 | +version: 2.1 |
| 2 | + |
| 3 | +orbs: |
| 4 | + |
| 5 | + |
| 6 | +executors: |
| 7 | + windows-2xlarge: |
| 8 | + machine: |
| 9 | + image: 'windows-server-2019-vs2019:stable' |
| 10 | + resource_class: windows.2xlarge |
| 11 | + shell: bash.exe |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + executor: windows-2xlarge |
| 16 | + |
| 17 | + environment: |
| 18 | + THIRDPARTY_HOME: C:/Users/circleci/thirdparty |
| 19 | + CMAKE_HOME: C:/Users/circleci/thirdparty/cmake-3.16.4-win64-x64 |
| 20 | + CMAKE_BIN: C:/Users/circleci/thirdparty/cmake-3.16.4-win64-x64/bin/cmake.exe |
| 21 | + CMAKE_GENERATOR: Visual Studio 16 2019 |
| 22 | + SNAPPY_HOME: C:/Users/circleci/thirdparty/snappy-1.1.7 |
| 23 | + SNAPPY_INCLUDE: C:/Users/circleci/thirdparty/snappy-1.1.7;C:/Users/circleci/thirdparty/snappy-1.1.7/build |
| 24 | + SNAPPY_LIB_DEBUG: C:/Users/circleci/thirdparty/snappy-1.1.7/build/Debug/snappy.lib |
| 25 | + |
| 26 | + steps: |
| 27 | + - checkout |
| 28 | + - run: |
| 29 | + name: "Install thirdparty dependencies" |
| 30 | + command: | |
| 31 | + mkdir ${THIRDPARTY_HOME} |
| 32 | + cd ${THIRDPARTY_HOME} |
| 33 | + echo "Installing CMake..." |
| 34 | + curl --fail --silent --show-error --output cmake-3.16.4-win64-x64.zip --location https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip |
| 35 | + unzip -q cmake-3.16.4-win64-x64.zip |
| 36 | + echo "Building Snappy dependency..." |
| 37 | + curl --fail --silent --show-error --output snappy-1.1.7.zip --location https://github.com/google/snappy/archive/1.1.7.zip |
| 38 | + unzip -q snappy-1.1.7.zip |
| 39 | + cd snappy-1.1.7 |
| 40 | + mkdir build |
| 41 | + cd build |
| 42 | + ${CMAKE_BIN} -G "${CMAKE_GENERATOR}" .. |
| 43 | + msbuild.exe Snappy.sln -maxCpuCount -property:Configuration=Debug -property:Platform=x64 |
| 44 | + - run: |
| 45 | + name: "Build RocksDB" |
| 46 | + command: | |
| 47 | + mkdir build |
| 48 | + cd build |
| 49 | + ${CMAKE_BIN} -G "${CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=Debug -DOPTDBG=1 -DPORTABLE=1 -DSNAPPY=1 -DJNI=1 .. |
| 50 | + cd .. |
| 51 | + msbuild.exe build/rocksdb.sln -maxCpuCount -property:Configuration=Debug -property:Platform=x64 |
| 52 | + - run: |
| 53 | + name: "Test RocksDB" |
| 54 | + shell: powershell.exe |
| 55 | + command: | |
| 56 | + build_tools\run_ci_db_test.ps1 -SuiteRun db_basic_test,db_test,db_test2,env_basic_test,env_test,db_merge_operand_test -Concurrency 16 |
0 commit comments