.cirrus.yml 3.5 KB

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