2
0

.cirrus.yml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.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-2
  31. image_family: freebsd-12-1
  32. image_family: freebsd-11-4
  33. env:
  34. CIRRUS_CLONE_DEPTH: 10
  35. MAKE_FLAGS: -j 2
  36. pkginstall_script:
  37. - pkg update -f
  38. - pkg install -y autoconf automake libtool pkgconf brotli openldap-client heimdal libpsl libmetalink libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel
  39. - case `python -V` in
  40. Python?3.7*) pkg install -y py37-impacket ;;
  41. Python?2.7*) pkg install -y py27-impacket ;;
  42. esac
  43. - pkg delete -y curl
  44. configure_script:
  45. - ./buildconf
  46. - case `uname -r` in
  47. 12.1*)
  48. export CC=clang;
  49. export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  50. export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
  51. export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;;
  52. esac
  53. - ./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; }
  54. compile_script:
  55. - make V=1
  56. test_script:
  57. # blackhole?
  58. - sysctl net.inet.tcp.blackhole
  59. # make sure we don't run blackhole != 0
  60. - sudo sysctl net.inet.tcp.blackhole=0
  61. # Some tests won't run if run as root so run them as another user.
  62. # Make directories world writable so the test step can write wherever it needs.
  63. - find . -type d -exec chmod 777 {} \;
  64. # The OpenSSH server instance for the testsuite cannot be started on FreeBSD,
  65. # therefore the SFTP and SCP tests are disabled right away from the beginning.
  66. - sudo -u nobody make V=1 TFLAGS="-n -a -p !flaky !SFTP !SCP" test-nonflaky
  67. install_script:
  68. - make V=1 install