appveyor.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Configuration for continuous integration service at appveyor.com
  2. version: '{build}'
  3. os: Visual Studio 2015
  4. environment:
  5. matrix:
  6. - Toolset: v140
  7. - Toolset: v120
  8. - Toolset: v110
  9. - Toolset: v100
  10. - Toolset: v90
  11. platform:
  12. - Win32
  13. - x64
  14. configuration:
  15. - Release
  16. matrix:
  17. exclude:
  18. - Toolset: v90
  19. platform: x64
  20. - Toolset: v100
  21. platform: x64
  22. build:
  23. verbosity: minimal
  24. before_build:
  25. - ps: |
  26. Write-Output "Configuration: $env:CONFIGURATION"
  27. Write-Output "Platform: $env:PLATFORM"
  28. $generator = switch ($env:TOOLSET)
  29. {
  30. "v140" {"Visual Studio 14 2015"}
  31. "v120" {"Visual Studio 12 2013"}
  32. "v110" {"Visual Studio 11 2012"}
  33. "v100" {"Visual Studio 10 2010"}
  34. "v90" {"Visual Studio 9 2008"}
  35. }
  36. if ($env:PLATFORM -eq "x64")
  37. {
  38. $generator = "$generator Win64"
  39. }
  40. build_script:
  41. - ps: |
  42. md _build -Force | Out-Null
  43. cd _build
  44. & cmake -G "$generator" -D CMAKE_CONFIGURATION_TYPES="Debug;Release" -D GFLAGS_BUILD_TESTING=ON -D GFLAGS_BUILD_SHARED_LIBS=ON -D GFLAGS_BUILD_STATIC_LIBS=ON ..
  45. if ($LastExitCode -ne 0) {
  46. throw "Exec: $ErrorMessage"
  47. }
  48. & cmake --build . --config $env:CONFIGURATION
  49. if ($LastExitCode -ne 0) {
  50. throw "Exec: $ErrorMessage"
  51. }
  52. test_script:
  53. - ps: |
  54. & ctest -C $env:CONFIGURATION --output-on-failure
  55. if ($LastExitCode -ne 0) {
  56. throw "Exec: $ErrorMessage"
  57. }