.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 2017
  12        APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  13        CMAKE_GENERATOR: Visual Studio 15 2017
  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%"=="x64" set CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64
  28    - cmake --version
  29    - cmake .. -G "%CMAKE_GENERATOR%"
  30        -DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%"
  31    - cmake --build . --config "%CONFIGURATION%"
  32    - cd ..
  33  
  34  test_script:
  35    - cd build && ctest --verbose --build-config "%CONFIGURATION%" && cd ..
  36