9
3

appveyor.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. shallow_clone: true
  2. environment:
  3. matrix:
  4. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
  5. PREMAKE_ACTION: vs2013
  6. CMAKE_GENERATOR: Visual Studio 12 2013 Win64
  7. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
  8. PREMAKE_ACTION: vs2015
  9. CMAKE_GENERATOR: Visual Studio 14 2015 Win64
  10. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  11. PREMAKE_ACTION: vs2017
  12. CMAKE_GENERATOR: Visual Studio 15 2017 Win64
  13. configuration:
  14. - Debug
  15. - Release
  16. platform:
  17. - Win64
  18. install:
  19. # Download Premake
  20. - ps: Start-FileDownload 'https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-windows.zip' 'premake.zip'
  21. # Extract it in-place; premake5.exe is at the top level.
  22. - 7z x premake.zip
  23. # Download SDL.
  24. - ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip' 'RecastDemo/Contrib/SDL.zip'
  25. # Extract it, put it in the right place, and rename it.
  26. - cd RecastDemo\Contrib && 7z x SDL.zip && ren SDL2-2.0.4 SDL && cd ..\..
  27. # Generate solution files using premake.
  28. - cd RecastDemo && "../premake5.exe" %PREMAKE_ACTION% && cd ..
  29. build:
  30. project: RecastDemo/Build/$(PREMAKE_ACTION)/recastnavigation.sln
  31. after_build:
  32. - mkdir build
  33. - cd build
  34. - cmake -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE="%CONFIGURATION%" -D CMAKE_INSTALL_PREFIX=. ..
  35. - cmake --build . --config "%CONFIGURATION%" --target install -- /m:%NUMBER_OF_PROCESSORS%
  36. - ctest -V
  37. - cd ..
  38. after_test:
  39. - RecastDemo\Bin\Tests.exe