.cirrus.yml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 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. ###########################################################################
  22. # Cirrus CI configuration
  23. # https://cirrus-ci.com/github/curl/curl
  24. freebsd_task:
  25. name: FreeBSD
  26. matrix:
  27. - name: FreeBSD 13.0
  28. freebsd_instance:
  29. image_family: freebsd-13-0
  30. - name: FreeBSD 12.3
  31. freebsd_instance:
  32. image_family: freebsd-12-3
  33. env:
  34. CIRRUS_CLONE_DEPTH: 10
  35. CRYPTOGRAPHY_DONT_BUILD_RUST: 1
  36. MAKE_FLAGS: -j 2
  37. pkginstall_script:
  38. - pkg update -f
  39. - pkg install -y autoconf automake libtool pkgconf brotli openldap24-client heimdal libpsl libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel py38-pip
  40. - pkg delete -y curl
  41. - pip install "cryptography<3.2"
  42. - pip install "pyOpenSSL<20.0"
  43. - pip install "impacket"
  44. configure_script:
  45. - autoreconf -fi
  46. # Building with the address sanitizer is causing unexplainable test issues due to timeouts
  47. #- case `uname -r` in
  48. # 12.2*)
  49. # export CC=clang;
  50. # export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  51. # export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  52. # export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;;
  53. # esac
  54. - ./configure --prefix="${HOME}"/install --enable-debug --with-openssl --with-libssh2 --with-brotli --with-gssapi --with-libidn2 --enable-manual --enable-ldap --enable-ldaps --with-librtmp --with-libpsl --with-nghttp2 || { tail -300 config.log; false; }
  55. compile_script:
  56. - make V=1 && make V=1 examples && cd tests && make V=1
  57. test_script:
  58. # blackhole?
  59. - sysctl net.inet.tcp.blackhole
  60. # make sure we don't run blackhole != 0
  61. - sudo sysctl net.inet.tcp.blackhole=0
  62. # Some tests won't run if run as root so run them as another user.
  63. # Make directories world writable so the test step can write wherever it needs.
  64. - find . -type d -exec chmod 777 {} \;
  65. # The OpenSSH server instance for the testsuite cannot be started on FreeBSD,
  66. # therefore the SFTP and SCP tests are disabled right away from the beginning.
  67. - sudo -u nobody make V=1 TFLAGS="-n !SFTP !SCP" test-ci
  68. install_script:
  69. - make V=1 install
  70. windows_task:
  71. name: Windows
  72. timeout_in: 90m
  73. windows_container:
  74. image: ${container_img}
  75. matrix:
  76. - name: Windows 32-bit shared/release Schannel/SSPI/WinIDN/libssh2
  77. env:
  78. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
  79. container_cmd: C:\msys64\usr\bin\sh
  80. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 mingw-w64-i686-python-pip mingw-w64-i686-python-wheel mingw-w64-i686-python-pyopenssl && python3 -m pip install --prefer-binary impacket
  81. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --enable-headers-api
  82. tests: "~571"
  83. - name: Windows 32-bit static/release Schannel/SSPI/WinIDN/libssh2
  84. env:
  85. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
  86. container_cmd: C:\msys64\usr\bin\sh
  87. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 mingw-w64-i686-python-pip mingw-w64-i686-python-wheel mingw-w64-i686-python-pyopenssl && python3 -m pip install --prefer-binary impacket
  88. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --disable-shared --enable-static --enable-headers-api
  89. tests: "~571"
  90. curl_LDFLAGS: -all-static
  91. PKG_CONFIG: pkg-config --static
  92. - name: Windows 64-bit shared/release Schannel/SSPI/WinIDN/libssh2
  93. env:
  94. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
  95. container_cmd: C:\msys64\usr\bin\sh
  96. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-python-pyopenssl && python3 -m pip install --prefer-binary impacket
  97. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --enable-headers-api
  98. tests: "~571"
  99. - name: Windows 64-bit static/release Schannel/SSPI/WinIDN/libssh2
  100. env:
  101. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
  102. container_cmd: C:\msys64\usr\bin\sh
  103. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-python-pyopenssl && python3 -m pip install --prefer-binary impacket
  104. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --disable-shared --enable-static --enable-headers-api
  105. tests: "~571"
  106. curl_LDFLAGS: -all-static
  107. PKG_CONFIG: pkg-config --static
  108. env:
  109. CIRRUS_CLONE_DEPTH: 10
  110. MSYS2_PATH_TYPE: inherit
  111. MAKEFLAGS: -j 2
  112. prepare_script: |
  113. %container_cmd% -l -c "cd $(echo '%cd%') && %prepare%"
  114. configure_script: |
  115. %container_cmd% -l -c "cd $(echo '%cd%') && autoreconf -fi && ./configure %configure%"
  116. compile_script: |
  117. %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 && make V=1 examples && cd tests && make V=1"
  118. install_script: |
  119. %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 install && PATH=/usr/bin:/bin find . -type f -path '*/.libs/*.exe' -print -execdir mv -t .. {} \;"
  120. test_script: |
  121. %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 TFLAGS='!IDN !SCP ~612 ~1056 %tests%' test-ci"