.appveyor.yml raw

   1  # Build matrix / environment variables are explained on:
   2  # https://www.appveyor.com/docs/appveyor-yml/
   3  # This file can be validated on: https://ci.appveyor.com/tools/validate-yaml
   4  
   5  version: "{build}"
   6  
   7  environment:
   8    matrix:
   9      # AppVeyor currently has no custom job name feature.
  10      # http://help.appveyor.com/discussions/questions/1623-can-i-provide-a-friendly-name-for-jobs
  11      - JOB: Visual Studio 2019
  12        APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
  13        CMAKE_GENERATOR: Visual Studio 16 2019
  14  
  15  platform:
  16    - x86
  17    - x64
  18  
  19  configuration:
  20    - RelWithDebInfo
  21    - Debug
  22  
  23  build_script:
  24    - git submodule update --init --recursive
  25    - mkdir build
  26    - cd build
  27    - if "%platform%"=="x86" (set CMAKE_GENERATOR_PLATFORM="Win32")
  28        else (set CMAKE_GENERATOR_PLATFORM="%platform%")
  29    - cmake --version
  30    - cmake .. -G "%CMAKE_GENERATOR%" -A "%CMAKE_GENERATOR_PLATFORM%"
  31        -DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%" -DCRC32C_USE_GLOG=0
  32    - cmake --build . --config "%CONFIGURATION%"
  33    - cd ..
  34  
  35  test_script:
  36    - build\%CONFIGURATION%\crc32c_tests.exe
  37    - build\%CONFIGURATION%\crc32c_capi_tests.exe
  38    - build\%CONFIGURATION%\crc32c_bench.exe
  39