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