.cirrus.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. # https://cirrus-ci.com/github/curl/curl
  25. #
  26. # Cirrus CI configuration:
  27. # https://cirrus-ci.org/guide/writing-tasks/
  28. freebsd_task:
  29. skip: "changesIncludeOnly(
  30. '**/CMakeLists.txt',
  31. '.azure-pipelines.yml',
  32. '.circleci/**',
  33. '.github/**',
  34. 'appveyor.*',
  35. 'CMake/**',
  36. 'packages/**',
  37. 'plan9/**',
  38. 'projects/**',
  39. 'winbuild/**'
  40. )"
  41. name: FreeBSD
  42. matrix:
  43. - name: FreeBSD 14.0
  44. freebsd_instance:
  45. image_family: freebsd-14-0
  46. env:
  47. CIRRUS_CLONE_DEPTH: 10
  48. CRYPTOGRAPHY_DONT_BUILD_RUST: 1
  49. MAKEFLAGS: -j 3
  50. pkginstall_script:
  51. - pkg update -f
  52. - pkg install -y autoconf automake libtool pkgconf brotli openldap26-client heimdal libpsl libssh2 libidn2 librtmp libnghttp2 nghttp2 stunnel py39-openssl py39-impacket py39-cryptography libpsl
  53. - pkg delete -y curl
  54. configure_script:
  55. - autoreconf -fi
  56. # Building with the address sanitizer is causing unexplainable test issues due to timeouts
  57. # - case `uname -r` in
  58. # 12.2*)
  59. # export CC=clang;
  60. # export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  61. # export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  62. # export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;;
  63. # esac
  64. - ./configure --prefix="${HOME}"/install --disable-dependency-tracking --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; }
  65. compile_script:
  66. - make V=1 && make V=1 examples && cd tests && make V=1
  67. test_script:
  68. # blackhole?
  69. - sysctl net.inet.tcp.blackhole
  70. # make sure we don't run blackhole != 0
  71. - sudo sysctl net.inet.tcp.blackhole=0
  72. # Some tests won't run if run as root so run them as another user.
  73. # Make directories world writable so the test step can write wherever it needs.
  74. - find . -type d -exec chmod 777 {} \;
  75. # The OpenSSH server instance for the testsuite cannot be started on FreeBSD,
  76. # therefore the SFTP and SCP tests are disabled right away from the beginning.
  77. #
  78. - sudo -u nobody make V=1 TFLAGS="-n !SFTP !SCP" test-ci
  79. install_script:
  80. - make V=1 install