config.yml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 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.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. # SPDX-License-Identifier: curl
  22. #
  23. ###########################################################################
  24. # View these jobs in the browser: https://app.circleci.com/pipelines/github/curl/curl
  25. # Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
  26. version: 2.1
  27. commands:
  28. configure:
  29. steps:
  30. - run:
  31. command: |
  32. autoreconf -fi
  33. ./configure --enable-warnings --enable-werror --with-openssl
  34. configure-openssl-no-verbose:
  35. steps:
  36. - run:
  37. command: |
  38. autoreconf -fi
  39. ./configure --disable-verbose --enable-werror --with-openssl
  40. configure-no-proxy:
  41. steps:
  42. - run:
  43. command: |
  44. autoreconf -fi
  45. ./configure --disable-proxy --enable-werror --with-openssl
  46. install-cares:
  47. steps:
  48. - run:
  49. command: |
  50. sudo apt-get update && sudo apt-get install -y libc-ares-dev
  51. install-libssh:
  52. steps:
  53. - run:
  54. command: |
  55. sudo apt-get update && sudo apt-get install -y libssh-dev
  56. install-deps:
  57. steps:
  58. - run:
  59. command: |
  60. sudo apt-get update && sudo apt-get install -y libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
  61. configure-libssh:
  62. steps:
  63. - run:
  64. command: |
  65. autoreconf -fi
  66. ./configure --enable-warnings --enable-werror --with-openssl --with-libssh
  67. install-wolfssl:
  68. steps:
  69. - run:
  70. command: |
  71. WOLFSSL_VER=5.5.4
  72. curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/wolfSSL/wolfssl/archive/v$WOLFSSL_VER-stable.tar.gz
  73. tar -xzf v$WOLFSSL_VER-stable.tar.gz
  74. cd wolfssl-$WOLFSSL_VER-stable
  75. ./autogen.sh
  76. ./configure --enable-tls13 --enable-all --enable-harden --prefix=$HOME/wssl
  77. make install
  78. install-wolfssh:
  79. steps:
  80. - run:
  81. command: |
  82. WOLFSSH_VER=1.4.12
  83. curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/wolfSSL/wolfssh/archive/v$WOLFSSH_VER-stable.tar.gz
  84. tar -xzf v$WOLFSSH_VER-stable.tar.gz
  85. cd wolfssh-$WOLFSSH_VER-stable
  86. ./autogen.sh
  87. ./configure --with-wolfssl=$HOME/wssl --prefix=$HOME/wssh --enable-scp --enable-sftp --disable-examples
  88. make install
  89. configure-cares:
  90. steps:
  91. - run:
  92. command: |
  93. autoreconf -fi
  94. ./configure --enable-warnings --enable-werror --with-openssl --enable-ares
  95. configure-wolfssh:
  96. steps:
  97. - run:
  98. command: |
  99. autoreconf -fi
  100. LDFLAGS="-Wl,-rpath,$HOME/wssh/lib" ./configure --enable-warnings --enable-werror --with-wolfssl=$HOME/wssl --with-wolfssh=$HOME/wssh
  101. configure-cares-debug:
  102. steps:
  103. - run:
  104. command: |
  105. autoreconf -fi
  106. ./configure --enable-debug --enable-werror --with-openssl --enable-ares
  107. build:
  108. steps:
  109. - run: make V=1
  110. - run: make V=1 examples
  111. test:
  112. steps:
  113. - run: make V=1 test-ci
  114. executors:
  115. ubuntu:
  116. machine:
  117. image: ubuntu-2004:202010-01
  118. jobs:
  119. basic:
  120. executor: ubuntu
  121. steps:
  122. - checkout
  123. - configure
  124. - build
  125. - test
  126. no-verbose:
  127. executor: ubuntu
  128. steps:
  129. - checkout
  130. - install-deps
  131. - configure-openssl-no-verbose
  132. - build
  133. wolfssh:
  134. executor: ubuntu
  135. steps:
  136. - checkout
  137. - install-deps
  138. - install-wolfssl
  139. - install-wolfssh
  140. - configure-wolfssh
  141. - build
  142. no-proxy:
  143. executor: ubuntu
  144. steps:
  145. - checkout
  146. - install-deps
  147. - configure-no-proxy
  148. - build
  149. - test
  150. cares:
  151. executor: ubuntu
  152. steps:
  153. - checkout
  154. - install-cares
  155. - configure-cares
  156. - build
  157. - test
  158. libssh:
  159. executor: ubuntu
  160. steps:
  161. - checkout
  162. - install-libssh
  163. - configure-libssh
  164. - build
  165. - test
  166. arm:
  167. machine:
  168. image: ubuntu-2004:202101-01
  169. resource_class: arm.medium
  170. steps:
  171. - checkout
  172. - configure
  173. - build
  174. - test
  175. arm-cares:
  176. machine:
  177. image: ubuntu-2004:202101-01
  178. resource_class: arm.medium
  179. steps:
  180. - checkout
  181. - install-cares
  182. - configure-cares-debug
  183. - build
  184. - test
  185. workflows:
  186. x86-openssl:
  187. jobs:
  188. - basic
  189. openssl-c-ares:
  190. jobs:
  191. - cares
  192. openssl-libssh:
  193. jobs:
  194. - libssh
  195. openssl-no-proxy:
  196. jobs:
  197. - no-proxy
  198. openssl-no-verbose:
  199. jobs:
  200. - no-verbose
  201. wolfssl-wolfssh:
  202. jobs:
  203. - wolfssh
  204. arm-openssl:
  205. jobs:
  206. - arm
  207. arm-openssl-c-ares:
  208. jobs:
  209. - arm-cares