2
0

config.yml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 2021, 2022, 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. curl -LO https://github.com/wolfSSL/wolfssl/archive/v5.1.1-stable.tar.gz
  72. tar -xzf v5.1.1-stable.tar.gz
  73. cd wolfssl-5.1.1-stable
  74. ./autogen.sh
  75. ./configure --enable-tls13 --enable-all --enable-harden --prefix=$HOME/wssl
  76. make && make install
  77. install-wolfssh:
  78. steps:
  79. - run:
  80. command: |
  81. curl -LO https://github.com/wolfSSL/wolfssh/archive/v1.4.8-stable.tar.gz
  82. tar -xzf v1.4.8-stable.tar.gz
  83. cd wolfssh-1.4.8-stable
  84. ./autogen.sh
  85. ./configure --with-wolfssl=$HOME/wssl --prefix=$HOME/wssh --enable-scp --enable-sftp --disable-examples
  86. make && make install
  87. configure-cares:
  88. steps:
  89. - run:
  90. command: |
  91. autoreconf -fi
  92. ./configure --enable-warnings --enable-werror --with-openssl --enable-ares
  93. configure-wolfssh:
  94. steps:
  95. - run:
  96. command: |
  97. autoreconf -fi
  98. LDFLAGS="-Wl,-rpath,$HOME/wssh/lib" ./configure --enable-warnings --enable-werror --with-wolfssl=$HOME/wssl --with-wolfssh=$HOME/wssh
  99. configure-cares-debug:
  100. steps:
  101. - run:
  102. command: |
  103. autoreconf -fi
  104. ./configure --enable-debug --enable-werror --with-openssl --enable-ares
  105. build:
  106. steps:
  107. - run: make V=1
  108. - run: make V=1 examples
  109. test:
  110. steps:
  111. - run: make V=1 test-ci
  112. executors:
  113. ubuntu:
  114. machine:
  115. image: ubuntu-2004:202010-01
  116. jobs:
  117. basic:
  118. executor: ubuntu
  119. steps:
  120. - checkout
  121. - configure
  122. - build
  123. - test
  124. no-verbose:
  125. executor: ubuntu
  126. steps:
  127. - checkout
  128. - install-deps
  129. - configure-openssl-no-verbose
  130. - build
  131. wolfssh:
  132. executor: ubuntu
  133. steps:
  134. - checkout
  135. - install-deps
  136. - install-wolfssl
  137. - install-wolfssh
  138. - configure-wolfssh
  139. - build
  140. no-proxy:
  141. executor: ubuntu
  142. steps:
  143. - checkout
  144. - install-deps
  145. - configure-no-proxy
  146. - build
  147. - test
  148. cares:
  149. executor: ubuntu
  150. steps:
  151. - checkout
  152. - install-cares
  153. - configure-cares
  154. - build
  155. - test
  156. libssh:
  157. executor: ubuntu
  158. steps:
  159. - checkout
  160. - install-libssh
  161. - configure-libssh
  162. - build
  163. - test
  164. arm:
  165. machine:
  166. image: ubuntu-2004:202101-01
  167. resource_class: arm.medium
  168. steps:
  169. - checkout
  170. - configure
  171. - build
  172. - test
  173. arm-cares:
  174. machine:
  175. image: ubuntu-2004:202101-01
  176. resource_class: arm.medium
  177. steps:
  178. - checkout
  179. - install-cares
  180. - configure-cares-debug
  181. - build
  182. - test
  183. workflows:
  184. x86-openssl:
  185. jobs:
  186. - basic
  187. openssl-c-ares:
  188. jobs:
  189. - cares
  190. openssl-libssh:
  191. jobs:
  192. - libssh
  193. openssl-no-proxy:
  194. jobs:
  195. - no-proxy
  196. openssl-no-verbose:
  197. jobs:
  198. - no-verbose
  199. wolfssl-wolfssh:
  200. jobs:
  201. - wolfssh
  202. arm-openssl:
  203. jobs:
  204. - arm
  205. arm-openssl-c-ares:
  206. jobs:
  207. - arm-cares