.cirrus.yml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2020, 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.haxx.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. task:
  25. name: FreeBSD
  26. freebsd_instance:
  27. matrix:
  28. # A stable 13.0 image likely won't be available before early 2021
  29. # image_family: freebsd-13-0-snap
  30. image_family: freebsd-12-1
  31. image_family: freebsd-11-4
  32. env:
  33. CIRRUS_CLONE_DEPTH: 10
  34. MAKE_FLAGS: -j 2
  35. pkginstall_script:
  36. - pkg update -f
  37. - pkg install -y autoconf automake libtool pkgconf brotli openldap-client heimdal libpsl libmetalink libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel
  38. - case `python -V` in
  39. Python?3.7*) pkg install -y py37-impacket ;;
  40. Python?2.7*) pkg install -y py27-impacket ;;
  41. esac
  42. - pkg delete -y curl
  43. configure_script:
  44. - ./buildconf
  45. - case `uname -r` in
  46. 12.1*)
  47. export CC=clang;
  48. export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  49. export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  50. export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;;
  51. esac
  52. - ./configure --prefix="${HOME}"/install --enable-debug --with-libssh2 --with-brotli --with-gssapi --with-libidn2 --enable-manual --enable-ldap --enable-ldaps --with-librtmp --with-libmetalink --with-libpsl --with-nghttp2 || { tail -300 config.log; false; }
  53. compile_script:
  54. - make V=1
  55. test_script:
  56. # blackhole?
  57. - sysctl net.inet.tcp.blackhole
  58. # make sure we don't run blackhole != 0
  59. - sudo sysctl net.inet.tcp.blackhole=0
  60. # Some tests won't run if run as root so run them as another user.
  61. # Make directories world writable so the test step can write wherever it needs.
  62. - find . -type d -exec chmod 777 {} \;
  63. # TODO: A number of tests are failing on different FreeBSD versions and so
  64. # are disabled. This should be investigated.
  65. - SKIP_TESTS=''
  66. - uname -r
  67. - case `uname -r` in
  68. 13.0*) SKIP_TESTS='!SFTP !SCP';;
  69. 12.1*) SKIP_TESTS='!SFTP !SCP';;
  70. 11.*) SKIP_TESTS='!SFTP !SCP';;
  71. esac
  72. - sudo -u nobody make V=1 TFLAGS="-n -a -p !flaky ${SKIP_TESTS}" test-nonflaky
  73. install_script:
  74. - make V=1 install