2020-03-23 16:44:29 +03:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 15:51:48 +03:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2020-03-23 16:44:29 +03:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 16:02:01 +03:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 16:44:29 +03:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
2022-05-30 15:13:48 +03:00
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 12:16:50 +03:00
|
|
|
#
|
2020-03-23 16:44:29 +03:00
|
|
|
###########################################################################
|
2019-02-09 12:04:39 +03:00
|
|
|
# https://cirrus-ci.com/github/curl/curl
|
2023-03-11 03:58:21 +03:00
|
|
|
#
|
|
|
|
# Cirrus CI configuration:
|
|
|
|
# https://cirrus-ci.org/guide/writing-tasks/
|
2019-02-09 12:04:39 +03:00
|
|
|
|
2021-05-15 21:54:57 +03:00
|
|
|
freebsd_task:
|
2023-03-11 03:58:21 +03:00
|
|
|
skip: "changesIncludeOnly(
|
2023-03-25 04:10:08 +03:00
|
|
|
'**/CMakeLists.txt',
|
2023-03-11 03:58:21 +03:00
|
|
|
'.azure-pipelines.yml',
|
|
|
|
'.circleci/**',
|
|
|
|
'.github/**',
|
2023-12-21 06:59:20 +03:00
|
|
|
'appveyor.*',
|
2023-03-25 04:10:08 +03:00
|
|
|
'CMake/**',
|
2023-03-11 03:58:21 +03:00
|
|
|
'packages/**',
|
|
|
|
'plan9/**',
|
|
|
|
'projects/**',
|
|
|
|
'winbuild/**'
|
|
|
|
)"
|
|
|
|
|
2019-02-09 12:04:39 +03:00
|
|
|
name: FreeBSD
|
2021-05-15 21:54:57 +03:00
|
|
|
|
|
|
|
matrix:
|
2023-10-07 16:45:14 +03:00
|
|
|
- name: FreeBSD 14.0
|
2021-09-08 11:14:45 +03:00
|
|
|
freebsd_instance:
|
2023-10-07 16:45:14 +03:00
|
|
|
image_family: freebsd-14-0
|
2019-02-09 12:04:39 +03:00
|
|
|
|
|
|
|
env:
|
2019-10-09 11:55:06 +03:00
|
|
|
CIRRUS_CLONE_DEPTH: 10
|
2021-07-18 13:33:36 +03:00
|
|
|
CRYPTOGRAPHY_DONT_BUILD_RUST: 1
|
2023-09-01 01:07:31 +03:00
|
|
|
MAKEFLAGS: -j 3
|
2019-02-09 12:04:39 +03:00
|
|
|
|
|
|
|
pkginstall_script:
|
2020-03-15 15:38:41 +03:00
|
|
|
- pkg update -f
|
2024-01-08 18:49:21 +03:00
|
|
|
- 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
|
2019-02-09 12:04:39 +03:00
|
|
|
- pkg delete -y curl
|
|
|
|
configure_script:
|
2022-03-15 12:25:25 +03:00
|
|
|
- autoreconf -fi
|
2021-09-08 11:14:45 +03:00
|
|
|
# Building with the address sanitizer is causing unexplainable test issues due to timeouts
|
2023-12-06 13:05:20 +03:00
|
|
|
# - case `uname -r` in
|
|
|
|
# 12.2*)
|
|
|
|
# export CC=clang;
|
|
|
|
# export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
|
|
|
|
# export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g";
|
|
|
|
# export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;;
|
|
|
|
# esac
|
2021-06-01 17:24:00 +03:00
|
|
|
- ./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; }
|
2019-02-09 12:04:39 +03:00
|
|
|
compile_script:
|
2021-12-14 09:53:39 +03:00
|
|
|
- make V=1 && make V=1 examples && cd tests && make V=1
|
2019-02-09 12:04:39 +03:00
|
|
|
test_script:
|
2019-10-09 10:20:29 +03:00
|
|
|
# blackhole?
|
|
|
|
- sysctl net.inet.tcp.blackhole
|
|
|
|
# make sure we don't run blackhole != 0
|
|
|
|
- sudo sysctl net.inet.tcp.blackhole=0
|
2019-02-09 12:04:39 +03:00
|
|
|
# Some tests won't run if run as root so run them as another user.
|
|
|
|
# Make directories world writable so the test step can write wherever it needs.
|
|
|
|
- find . -type d -exec chmod 777 {} \;
|
2020-11-20 10:20:04 +03:00
|
|
|
# The OpenSSH server instance for the testsuite cannot be started on FreeBSD,
|
|
|
|
# therefore the SFTP and SCP tests are disabled right away from the beginning.
|
2023-08-21 15:05:38 +03:00
|
|
|
#
|
2021-10-08 21:43:19 +03:00
|
|
|
- sudo -u nobody make V=1 TFLAGS="-n !SFTP !SCP" test-ci
|
2019-02-09 12:04:39 +03:00
|
|
|
install_script:
|
|
|
|
- make V=1 install
|