appveyor.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. image:
  2. - Visual Studio 2017
  3. environment:
  4. matrix:
  5. # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
  6. # platform: x64
  7. # FLAGS: "/std:c++latest"
  8. # GENERATOR: Visual Studio 14 2015 Win64
  9. # PYTHON: "C:\\Python36-x64"
  10. # PYTHON_ARCH: "64"
  11. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  12. platform: x64
  13. FLAGS: "/permissive- /std:c++latest /utf-8"
  14. GENERATOR: Visual Studio 15 2017 Win64
  15. PYTHON: "C:\\Python36-x64"
  16. PYTHON_ARCH: "64"
  17. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
  18. platform: x64
  19. FLAGS: "/permissive- /std:c++latest /utf-8"
  20. GENERATOR: Visual Studio 16 2019
  21. PYTHON: "C:\\Python36-x64"
  22. PYTHON_ARCH: "64"
  23. clone_folder: c:\projects\source
  24. install:
  25. - set PATH=C:\Users\appveyor\AppData\Roaming\Python\Python36\Scripts;%PYTHON%;%PYTHON%/Scripts/;%PATH%
  26. - where python
  27. - python -m pip install --upgrade pip
  28. - python -m pip install conan==1.59 --user
  29. - dir "%PYTHON%/Scripts"
  30. - conan user
  31. - conan --version
  32. #build_script:
  33. # - cmd: mkdir build
  34. # - cmd: conan install . -o gtest:shared=True
  35. # - cmd: cd build
  36. # - cmd: cmake ../ -DBUILD_TEST=TRUE -G "Visual Studio 14 2015 Win64"
  37. # - cmd: cmake --build . --config Release
  38. build_script:
  39. - mkdir build
  40. - cd build
  41. - conan install ../ --build
  42. - cmake ../ -G "%GENERATOR%" -DCMAKE_BUILD_TYPE:STRING=Release
  43. - cmake --build . --config "Release"
  44. test_script:
  45. - cmd: >-
  46. set CTEST_OUTPUT_ON_FAILURE=1
  47. ctest --verbose --output-on-failure -C Release
  48. # version: '{build}'
  49. #
  50. # environment:
  51. # matrix:
  52. # # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
  53. # # COMPILER: mingw
  54. # # platform: x86
  55. # # FLAGS: ""
  56. # # GENERATOR: Ninja
  57. # #
  58. # # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
  59. # # platform: x86
  60. # # FLAGS: ""
  61. # # GENERATOR: Visual Studio 14 2015
  62. # #
  63. # # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  64. # # platform: x86
  65. # # FLAGS: ""
  66. # # GENERATOR: Visual Studio 15 2017
  67. # #
  68. # # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  69. # # platform: x86
  70. # # FLAGS: "/permissive- /std:c++latest /utf-8"
  71. # # GENERATOR: Visual Studio 15 2017
  72. # #
  73. # # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
  74. # # platform: x64
  75. # # FLAGS: ""
  76. # # GENERATOR: Visual Studio 14 2015
  77. # #
  78. # # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  79. # # platform: x64
  80. # # FLAGS: ""
  81. # # GENERATOR: Visual Studio 15 2017
  82. #
  83. # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  84. # platform: x64
  85. # FLAGS: "/permissive- /std:c++latest /utf-8"
  86. # GENERATOR: Visual Studio 15 2017
  87. #
  88. #
  89. # install:
  90. # - if "%COMPILER%"=="mingw" appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip -FileName ninja.zip
  91. # - if "%COMPILER%"=="mingw" 7z x ninja.zip -oC:\projects\deps\ninja > nul
  92. # - if "%COMPILER%"=="mingw" set PATH=C:\projects\deps\ninja;%PATH%
  93. # - if "%COMPILER%"=="mingw" set PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;%PATH%
  94. # - if "%COMPILER%"=="mingw" g++ --version
  95. # - echo "Downloading conan..."
  96. # - set PATH=%PATH%;%PYTHON%/Scripts/
  97. # - pip.exe install conan
  98. # - conan user # Create the conan data directory
  99. # - conan --version
  100. # - conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
  101. #
  102. # clone_folder: c:\projects\source
  103. # build_script:
  104. # - cmd: >-
  105. # call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
  106. #
  107. # mkdir build
  108. #
  109. # cd build
  110. #
  111. # conan install c:\projects\source --build -s arch=x86_64
  112. #
  113. # cmake c:\projects\source -DCMAKE_CXX_FLAGS="%FLAGS%" -G "%GENERATOR%" -DGNL_USE_CONAN:BOOL=TRUE
  114. #
  115. # cmake --build . --config "Debug"
  116. #
  117. #
  118. # test_script:
  119. # - cmd: ctest -C Debug
  120. #
  121. #
  122. #
  123. #
  124. # #init:
  125. # # - cmake --version
  126. # # - msbuild /version
  127. # #
  128. # #install:
  129. # # - if "%COMPILER%"=="mingw" appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip -FileName ninja.zip
  130. # # - if "%COMPILER%"=="mingw" 7z x ninja.zip -oC:\projects\deps\ninja > nul
  131. # # - if "%COMPILER%"=="mingw" set PATH=C:\projects\deps\ninja;%PATH%
  132. # # - if "%COMPILER%"=="mingw" set PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;%PATH%
  133. # # - if "%COMPILER%"=="mingw" g++ --version
  134. # #
  135. # #before_build:
  136. # # - cmake . -G "%GENERATOR%" -DCMAKE_CXX_FLAGS="%FLAGS%" -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin"
  137. # #
  138. # #build_script:
  139. # # - cmake --build . --config Release
  140. # #
  141. # #test_script:
  142. # # - ctest -C Release -V -j
  143. #
  144. #