.cirrus.yml 6.5 KB

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