.cirrus.yml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2021, 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. # A stable 13.0 image likely won't be available before early 2021
  28. # image_family: freebsd-13-0-snap
  29. - name: FreeBSD 12.2
  30. freebsd_instance:
  31. image_family: freebsd-12-2
  32. - name: FreeBSD 11.4
  33. freebsd_instance:
  34. image_family: freebsd-11-4
  35. env:
  36. CIRRUS_CLONE_DEPTH: 10
  37. CRYPTOGRAPHY_DONT_BUILD_RUST: 1
  38. MAKE_FLAGS: -j 2
  39. pkginstall_script:
  40. - pkg update -f
  41. - pkg install -y autoconf automake libtool pkgconf brotli openldap-client heimdal libpsl libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel
  42. - pkg delete -y curl
  43. - easy_install "cryptography<3.2"
  44. - easy_install "pyOpenSSL<20.0"
  45. - easy_install "impacket"
  46. configure_script:
  47. - ./buildconf
  48. - case `uname -r` in
  49. 12.1*)
  50. export CC=clang;
  51. export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  52. export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  53. export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;;
  54. esac
  55. - ./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; }
  56. compile_script:
  57. - make V=1 && cd tests && make V=1
  58. test_script:
  59. # blackhole?
  60. - sysctl net.inet.tcp.blackhole
  61. # make sure we don't run blackhole != 0
  62. - sudo sysctl net.inet.tcp.blackhole=0
  63. # Some tests won't run if run as root so run them as another user.
  64. # Make directories world writable so the test step can write wherever it needs.
  65. - find . -type d -exec chmod 777 {} \;
  66. # The OpenSSH server instance for the testsuite cannot be started on FreeBSD,
  67. # therefore the SFTP and SCP tests are disabled right away from the beginning.
  68. - sudo -u nobody make V=1 TFLAGS="-n -a -p !flaky !SFTP !SCP" test-nonflaky
  69. install_script:
  70. - make V=1 install
  71. windows_task:
  72. name: Windows
  73. timeout_in: 90m
  74. windows_container:
  75. image: ${container_img}
  76. matrix:
  77. - name: Windows 32-bit shared/release Schannel/SSPI/WinIDN/libssh2
  78. env:
  79. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
  80. container_cmd: C:\msys64\usr\bin\sh
  81. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
  82. configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
  83. tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP
  84. - name: Windows 32-bit static/release Schannel/SSPI/WinIDN/libssh2
  85. env:
  86. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
  87. container_cmd: C:\msys64\usr\bin\sh
  88. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
  89. 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
  90. tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP
  91. curl_LDFLAGS: -all-static
  92. PKG_CONFIG: pkg-config --static
  93. - name: Windows 64-bit shared/release Schannel/SSPI/WinIDN/libssh2
  94. env:
  95. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
  96. container_cmd: C:\msys64\usr\bin\sh
  97. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
  98. configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
  99. tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP
  100. - name: Windows 64-bit static/release Schannel/SSPI/WinIDN/libssh2
  101. env:
  102. container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
  103. container_cmd: C:\msys64\usr\bin\sh
  104. prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
  105. 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
  106. tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP
  107. curl_LDFLAGS: -all-static
  108. PKG_CONFIG: pkg-config --static
  109. env:
  110. CIRRUS_CLONE_DEPTH: 10
  111. MSYS2_PATH_TYPE: inherit
  112. MAKEFLAGS: -j 2
  113. prepare_script: |
  114. %container_cmd% -l -c "cd $(echo '%cd%') && %prepare%"
  115. configure_script: |
  116. %container_cmd% -l -c "cd $(echo '%cd%') && ./buildconf && ./configure %configure%"
  117. compile_script: |
  118. %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 && cd tests && make V=1"
  119. install_script: |
  120. %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 .. {} \;"
  121. test_script: |
  122. %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 TFLAGS='-r -rm %tests%' test-nonflaky"