作者: 谢瑞阳 10225101483 徐翔宇 10225101535
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 line
1.0 KiB

  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. version: "{build}"
  5. environment:
  6. matrix:
  7. # AppVeyor currently has no custom job name feature.
  8. # http://help.appveyor.com/discussions/questions/1623-can-i-provide-a-friendly-name-for-jobs
  9. - JOB: Visual Studio 2019
  10. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
  11. CMAKE_GENERATOR: Visual Studio 16 2019
  12. platform:
  13. - x86
  14. - x64
  15. configuration:
  16. - RelWithDebInfo
  17. - Debug
  18. build_script:
  19. - git submodule update --init --recursive
  20. - mkdir build
  21. - cd build
  22. - if "%platform%"=="x86" (set CMAKE_GENERATOR_PLATFORM="Win32")
  23. else (set CMAKE_GENERATOR_PLATFORM="%platform%")
  24. - cmake --version
  25. - cmake .. -G "%CMAKE_GENERATOR%" -A "%CMAKE_GENERATOR_PLATFORM%"
  26. -DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%"
  27. - cmake --build . --config "%CONFIGURATION%"
  28. - cd ..
  29. test_script:
  30. - cd build && ctest --verbose --build-config "%CONFIGURATION%" && cd ..