appveyor.yml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. version: 7.50.0.{build}
  2. environment:
  3. matrix:
  4. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  5. BUILD_SYSTEM: CMake
  6. PRJ_GEN: "Visual Studio 9 2008"
  7. PRJ_CFG: Release
  8. OPENSSL: OFF
  9. WINSSL: ON
  10. HTTP_ONLY: OFF
  11. TESTING: OFF
  12. SHARED: ON
  13. DISABLED_TESTS: ""
  14. COMPILER_PATH: ""
  15. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
  16. BUILD_SYSTEM: CMake
  17. PRJ_GEN: "Visual Studio 16 2019"
  18. TARGET: "-A x64"
  19. PRJ_CFG: Debug
  20. OPENSSL: OFF
  21. WINSSL: ON
  22. HTTP_ONLY: OFF
  23. TESTING: ON
  24. SHARED: OFF
  25. DISABLED_TESTS: "!1139"
  26. COMPILER_PATH: ""
  27. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
  28. BUILD_SYSTEM: CMake
  29. PRJ_GEN: "Visual Studio 16 2019"
  30. TARGET: "-A x64"
  31. PRJ_CFG: Release
  32. OPENSSL: ON
  33. WINSSL: OFF
  34. HTTP_ONLY: OFF
  35. TESTING: OFF
  36. SHARED: ON
  37. DISABLED_TESTS: ""
  38. COMPILER_PATH: ""
  39. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  40. BUILD_SYSTEM: CMake
  41. PRJ_GEN: "Visual Studio 10 2010 Win64"
  42. PRJ_CFG: Debug
  43. OPENSSL: OFF
  44. WINSSL: OFF
  45. HTTP_ONLY: OFF
  46. TESTING: ON
  47. SHARED: OFF
  48. DISABLED_TESTS: "!1139"
  49. COMPILER_PATH: ""
  50. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
  51. BUILD_SYSTEM: CMake
  52. PRJ_GEN: "Visual Studio 16 2019"
  53. TARGET: "-A x64"
  54. PRJ_CFG: Debug
  55. OPENSSL: OFF
  56. WINSSL: OFF
  57. HTTP_ONLY: OFF
  58. TESTING: ON
  59. SHARED: OFF
  60. DISABLED_TESTS: "!1139"
  61. COMPILER_PATH: ""
  62. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
  63. BUILD_SYSTEM: CMake
  64. PRJ_GEN: "Visual Studio 16 2019"
  65. TARGET: "-A x64"
  66. PRJ_CFG: Debug
  67. OPENSSL: OFF
  68. WINSSL: OFF
  69. HTTP_ONLY: ON
  70. TESTING: ON
  71. SHARED: OFF
  72. DISABLED_TESTS: "!1139"
  73. COMPILER_PATH: ""
  74. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  75. BUILD_SYSTEM: CMake
  76. PRJ_GEN: "MSYS Makefiles"
  77. PRJ_CFG: Debug
  78. OPENSSL: OFF
  79. WINSSL: OFF
  80. HTTP_ONLY: OFF
  81. TESTING: ON
  82. SHARED: OFF
  83. DISABLED_TESTS: "!198 !1139"
  84. COMPILER_PATH: "C:\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin"
  85. MSYS2_ARG_CONV_EXCL: "/*"
  86. BUILD_OPT: -k
  87. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  88. BUILD_SYSTEM: CMake
  89. PRJ_GEN: "MSYS Makefiles"
  90. PRJ_CFG: Debug
  91. OPENSSL: OFF
  92. WINSSL: ON
  93. HTTP_ONLY: OFF
  94. TESTING: ON
  95. SHARED: OFF
  96. DISABLED_TESTS: "!1139"
  97. COMPILER_PATH: "C:\\mingw-w64\\i686-6.3.0-posix-dwarf-rt_v5-rev1\\mingw32\\bin"
  98. MSYS2_ARG_CONV_EXCL: "/*"
  99. BUILD_OPT: -k
  100. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  101. BUILD_SYSTEM: CMake
  102. PRJ_GEN: "MSYS Makefiles"
  103. PRJ_CFG: Debug
  104. OPENSSL: OFF
  105. WINSSL: OFF
  106. HTTP_ONLY: OFF
  107. TESTING: ON
  108. SHARED: OFF
  109. DISABLED_TESTS: "!1139"
  110. COMPILER_PATH: "C:\\MinGW\\bin"
  111. MSYS2_ARG_CONV_EXCL: "/*"
  112. BUILD_OPT: -k
  113. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  114. BUILD_SYSTEM: winbuild_vs2015
  115. DEBUG: yes
  116. PATHPART: debug
  117. TESTING: OFF
  118. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  119. BUILD_SYSTEM: winbuild_vs2015
  120. DEBUG: no
  121. PATHPART: release
  122. TESTING: OFF
  123. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
  124. BUILD_SYSTEM: winbuild_vs2017
  125. DEBUG: yes
  126. PATHPART: debug
  127. TESTING: OFF
  128. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
  129. BUILD_SYSTEM: winbuild_vs2017
  130. DEBUG: no
  131. PATHPART: release
  132. TESTING: OFF
  133. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
  134. BUILD_SYSTEM: VisualStudioSolution
  135. PRJ_CFG: "DLL Debug - DLL Windows SSPI - DLL WinIDN"
  136. TESTING: OFF
  137. VC_VERSION: VC15
  138. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
  139. BUILD_SYSTEM: CMake
  140. PRJ_GEN: "Visual Studio 16 2019"
  141. TARGET: "-A ARM64"
  142. PRJ_CFG: Release
  143. OPENSSL: OFF
  144. WINSSL: ON
  145. HTTP_ONLY: OFF
  146. TESTING: OFF
  147. SHARED: OFF
  148. DISABLED_TESTS: ""
  149. COMPILER_PATH: ""
  150. - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
  151. BUILD_SYSTEM: autotools
  152. TESTING: ON
  153. DISABLED_TESTS: "!19 !1056 !1233 !1242 !1243 !2002 !2003"
  154. CONFIG_ARGS: "--enable-debug --enable-werror --enable-alt-svc --disable-threaded-resolver --disable-proxy"
  155. install:
  156. - set "PATH=C:\msys64\usr\bin;%PATH%"
  157. - if not "%COMPILER_PATH%"=="" (
  158. set "PATH=%COMPILER_PATH%;%PATH%" )
  159. build_script:
  160. - if %BUILD_SYSTEM%==CMake (
  161. cmake .
  162. -G"%PRJ_GEN%"
  163. %TARGET%
  164. -DCMAKE_USE_OPENSSL=%OPENSSL%
  165. -DCMAKE_USE_WINSSL=%WINSSL%
  166. -DHTTP_ONLY=%HTTP_ONLY%
  167. -DBUILD_SHARED_LIBS=%SHARED%
  168. -DBUILD_TESTING=%TESTING%
  169. -DCURL_WERROR=ON
  170. -DENABLE_DEBUG=ON
  171. -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=""
  172. -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=""
  173. -DCMAKE_INSTALL_PREFIX="C:/CURL"
  174. -DCMAKE_BUILD_TYPE=%PRJ_CFG% &&
  175. cmake --build . --config %PRJ_CFG% --parallel 2 --clean-first -- %BUILD_OPT%
  176. ) else (
  177. if %BUILD_SYSTEM%==VisualStudioSolution (
  178. cd projects &&
  179. .\\generate.bat %VC_VERSION% &&
  180. msbuild.exe /p:Configuration="%PRJ_CFG%" "Windows\\%VC_VERSION%\\curl-all.sln"
  181. ) else (
  182. if %BUILD_SYSTEM%==winbuild_vs2015 (
  183. call buildconf.bat &&
  184. cd winbuild &&
  185. call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 &&
  186. call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 &&
  187. nmake /f Makefile.vc mode=dll VC=14 "SSL_PATH=C:\OpenSSL-v111-Win64" WITH_SSL=dll MACHINE=x64 DEBUG=%DEBUG% &&
  188. ..\builds\libcurl-vc14-x64-%PATHPART%-dll-ssl-dll-ipv6-sspi\bin\curl.exe -V
  189. ) else (
  190. if %BUILD_SYSTEM%==winbuild_vs2017 (
  191. call buildconf.bat &&
  192. cd winbuild &&
  193. call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" &&
  194. nmake /f Makefile.vc mode=dll VC=15 "SSL_PATH=C:\OpenSSL-v111-Win64" WITH_SSL=dll MACHINE=x64 DEBUG=%DEBUG% &&
  195. ..\builds\libcurl-vc15-x64-%PATHPART%-dll-ssl-dll-ipv6-sspi\bin\curl.exe -V
  196. ) else (
  197. if %BUILD_SYSTEM%==autotools (
  198. bash.exe -e -l -c "cd /c/projects/curl && ./buildconf && ./configure %CONFIG_ARGS% && make && make examples && cd tests && make"
  199. )))))
  200. test_script:
  201. - if %TESTING%==ON (
  202. bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -p !flaky %DISABLED_TESTS%" )
  203. # whitelist branches to avoid testing feature branches twice (as branch and as pull request)
  204. branches:
  205. only:
  206. - master
  207. - /\/ci$/
  208. artifacts:
  209. - path: '**/curl.exe'
  210. name: curl
  211. - path: '**/libcurl.dll'
  212. name: libcurl