.azure-pipelines.yml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. #
  10. # This software is licensed as described in the file COPYING, which
  11. # you should have received as part of this distribution. The terms
  12. # are also available at https://curl.haxx.se/docs/copyright.html.
  13. #
  14. # You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. # copies of the Software, and permit persons to whom the Software is
  16. # furnished to do so, under the terms of the COPYING file.
  17. #
  18. # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. # KIND, either express or implied.
  20. #
  21. ###########################################################################
  22. # Starter pipeline
  23. # Start with a minimal pipeline that you can customize to build and deploy your code.
  24. # Add steps that build, run tests, deploy, and more:
  25. # https://aka.ms/yaml
  26. trigger:
  27. branches:
  28. include:
  29. - 'master'
  30. - '*/ci'
  31. pr:
  32. branches:
  33. include:
  34. - 'master'
  35. stages:
  36. ##########################################
  37. ### Linux jobs first
  38. ##########################################
  39. - stage: linux
  40. dependsOn: []
  41. jobs:
  42. - job: ubuntu
  43. # define defaults to make sure variables are always expanded/replaced
  44. variables:
  45. install: ''
  46. configure: ''
  47. tflags: ''
  48. timeoutInMinutes: 60
  49. pool:
  50. vmImage: 'ubuntu-latest'
  51. strategy:
  52. matrix:
  53. default:
  54. name: default
  55. configure: --enable-debug --enable-werror
  56. disable_ipv6:
  57. name: w/o IPv6
  58. configure: --disable-ipv6
  59. disable_http_smtp_imap:
  60. name: w/o HTTP/SMTP/IMAP
  61. configure: --disable-http --disable-smtp --disable-imap
  62. disable_thredres:
  63. name: sync resolver
  64. configure: --disable-threaded-resolver
  65. http_only:
  66. name: HTTP only
  67. configure: --disable-dict --disable-file --disable-ftp --disable-gopher --disable-imap --disable-ldap --disable-pop3 --disable-rtmp --disable-rtsp --disable-scp --disable-sftp --disable-smb --disable-smtp --disable-telnet --disable-tftp
  68. torture:
  69. name: torture
  70. install: libnghttp2-dev
  71. configure: --enable-debug --disable-shared --disable-threaded-resolver --enable-alt-svc
  72. tflags: -n -t --shallow=40 !FTP
  73. steps:
  74. - script: sudo apt-get update && sudo apt-get install -y stunnel4 python-impacket $(install)
  75. displayName: 'apt install'
  76. - script: ./buildconf && ./configure $(configure)
  77. displayName: 'configure $(name)'
  78. - script: make
  79. displayName: 'make'
  80. - script: make test-nonflaky
  81. displayName: 'test'
  82. env:
  83. AZURE_ACCESS_TOKEN: "$(System.AccessToken)"
  84. TFLAGS: "$(tflags)"
  85. ##########################################
  86. ### Windows jobs below
  87. ##########################################
  88. - stage: windows
  89. dependsOn: []
  90. variables:
  91. agent.preferPowerShellOnContainers: true
  92. jobs:
  93. - job: windows
  94. # define defaults to make sure variables are always expanded/replaced
  95. variables:
  96. container_img: ''
  97. container_cmd: ''
  98. configure: ''
  99. tflags: ''
  100. timeoutInMinutes: 90
  101. pool:
  102. vmImage: 'windows-2019'
  103. strategy:
  104. matrix:
  105. msys2_mingw32_debug_openssl:
  106. name: 32-bit OpenSSL and MQTT
  107. container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019
  108. container_cmd: C:\msys64\usr\bin\sh
  109. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-mqtt
  110. tflags: ~1056 ~1299
  111. msys2_mingw64_debug_openssl:
  112. name: 64-bit OpenSSL and MQTT
  113. container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019
  114. container_cmd: C:\msys64\usr\bin\sh
  115. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --enable-mqtt
  116. tflags: ~1056 ~1299
  117. msys1_mingw_debug_openssl:
  118. name: 32-bit OpenSSL (legacy)
  119. container_img: mback2k/curl-docker-winbuildenv-msys1-mingw:ltsc2019
  120. container_cmd: C:\MinGW\msys\1.0\bin\sh
  121. configure: --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/mingw --enable-debug
  122. tflags: ~203 ~1056 ~1143
  123. msys1_mingw32_debug_openssl:
  124. name: 32-bit OpenSSL w/o zlib
  125. container_img: mback2k/curl-docker-winbuildenv-msys1-mingw32:ltsc2019
  126. container_cmd: C:\MinGW\msys\1.0\bin\sh
  127. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --without-zlib
  128. tflags: ~203 ~1056 ~1143 ~1299
  129. msys1_mingw64_debug_openssl:
  130. name: 64-bit OpenSSL w/o zlib
  131. container_img: mback2k/curl-docker-winbuildenv-msys1-mingw64:ltsc2019
  132. container_cmd: C:\MinGW\msys\1.0\bin\sh
  133. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --without-zlib
  134. tflags: ~203 ~1056 ~1143 ~1299
  135. msys2_mingw32_debug_schannel:
  136. name: 32-bit Schannel/SSPI/WinIDN
  137. container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019
  138. container_cmd: C:\msys64\usr\bin\sh
  139. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --without-ssl --with-schannel --with-winidn
  140. tflags: ~165 ~310 ~1013 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001
  141. msys2_mingw64_debug_schannel:
  142. name: 64-bit Schannel/SSPI/WinIDN
  143. container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019
  144. container_cmd: C:\msys64\usr\bin\sh
  145. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --enable-sspi --without-ssl --with-schannel --with-winidn
  146. tflags: ~165 ~310 ~1013 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001
  147. msys1_mingw_debug_schannel:
  148. name: 32-bit Schannel/SSPI/WinIDN (legacy)
  149. container_img: mback2k/curl-docker-winbuildenv-msys1-mingw:ltsc2019
  150. container_cmd: C:\MinGW\msys\1.0\bin\sh
  151. configure: --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/mingw --enable-debug --enable-sspi --without-ssl --with-schannel --with-winidn
  152. tflags: ~203 ~305 ~310 ~311 ~312 ~313 ~404 ~1013 ~1056 ~1143 ~2034 ~2035 ~2037 ~2038 ~2041 ~2042 ~2048 ~3000 ~3001
  153. msys1_mingw32_debug_schannel:
  154. name: 32-bit Schannel/SSPI/WinIDN w/o zlib
  155. container_img: mback2k/curl-docker-winbuildenv-msys1-mingw32:ltsc2019
  156. container_cmd: C:\MinGW\msys\1.0\bin\sh
  157. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --without-ssl --with-schannel --with-winidn --without-zlib
  158. tflags: ~203 ~310 ~1013 ~1056 ~1143 ~1299 ~2034 ~2037 ~2041 ~3000 ~3001
  159. msys1_mingw64_debug_schannel:
  160. name: 64-bit Schannel/SSPI/WinIDN w/o zlib
  161. container_img: mback2k/curl-docker-winbuildenv-msys1-mingw64:ltsc2019
  162. container_cmd: C:\MinGW\msys\1.0\bin\sh
  163. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --enable-sspi --without-ssl --with-schannel --with-winidn --without-zlib
  164. tflags: ~203 ~310 ~1013 ~1056 ~1143 ~1299 ~2034 ~2037 ~2041 ~3000 ~3001
  165. container:
  166. image: $(container_img)
  167. env:
  168. MSYS2_PATH_TYPE: inherit
  169. steps:
  170. - script: $(container_cmd) -l -c "cd $(echo '%cd%') && ./buildconf && ./configure $(configure)"
  171. displayName: 'configure $(name)'
  172. - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make"
  173. displayName: 'make'
  174. - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make test-nonflaky"
  175. displayName: 'test'
  176. env:
  177. AZURE_ACCESS_TOKEN: "$(System.AccessToken)"
  178. TFLAGS: "$(tflags)"