2020-03-23 21:44:29 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2020-03-23 21:44:29 +08: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 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 21:44:29 +08: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-17 17:16:50 +08:00
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
#
|
2020-03-23 21:44:29 +08:00
|
|
|
###########################################################################
|
2019-02-09 17:04:39 +08:00
|
|
|
# https://cirrus-ci.com/github/curl/curl
|
2023-03-11 08:58:21 +08:00
|
|
|
#
|
|
|
|
# Cirrus CI configuration:
|
2024-05-31 09:39:12 +08:00
|
|
|
# https://cirrus-ci.org/guide/writing-tasks/
|
|
|
|
# Used/remaining credits (must be logged in):
|
|
|
|
# https://cirrus-ci.com/settings/github/curl
|
2019-02-09 17:04:39 +08:00
|
|
|
|
2021-05-16 02:54:57 +08:00
|
|
|
freebsd_task:
|
2023-03-11 08:58:21 +08:00
|
|
|
skip: "changesIncludeOnly(
|
2023-03-25 09:10:08 +08:00
|
|
|
'**/CMakeLists.txt',
|
2023-03-11 08:58:21 +08:00
|
|
|
'.azure-pipelines.yml',
|
|
|
|
'.circleci/**',
|
|
|
|
'.github/**',
|
2023-12-21 11:59:20 +08:00
|
|
|
'appveyor.*',
|
2023-03-25 09:10:08 +08:00
|
|
|
'CMake/**',
|
2023-03-11 08:58:21 +08:00
|
|
|
'packages/**',
|
|
|
|
'plan9/**',
|
|
|
|
'projects/**',
|
|
|
|
'winbuild/**'
|
|
|
|
)"
|
|
|
|
|
2019-02-09 17:04:39 +08:00
|
|
|
name: FreeBSD
|
2021-05-16 02:54:57 +08:00
|
|
|
|
|
|
|
matrix:
|
2023-10-07 21:45:14 +08:00
|
|
|
- name: FreeBSD 14.0
|
2021-09-08 16:14:45 +08:00
|
|
|
freebsd_instance:
|
2023-10-07 21:45:14 +08:00
|
|
|
image_family: freebsd-14-0
|
2024-05-31 09:39:12 +08:00
|
|
|
memory: 1600M
|
2019-02-09 17:04:39 +08:00
|
|
|
|
|
|
|
env:
|
2019-10-09 16:55:06 +08:00
|
|
|
CIRRUS_CLONE_DEPTH: 10
|
2021-07-18 18:33:36 +08:00
|
|
|
CRYPTOGRAPHY_DONT_BUILD_RUST: 1
|
2023-09-01 06:07:31 +08:00
|
|
|
MAKEFLAGS: -j 3
|
2019-02-09 17:04:39 +08:00
|
|
|
|
|
|
|
pkginstall_script:
|
2020-03-15 20:38:41 +08:00
|
|
|
- pkg update -f
|
2024-01-08 23:49:21 +08: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 17:04:39 +08:00
|
|
|
- pkg delete -y curl
|
|
|
|
configure_script:
|
2022-03-15 17:25:25 +08:00
|
|
|
- autoreconf -fi
|
2021-09-08 16:14:45 +08:00
|
|
|
# Building with the address sanitizer is causing unexplainable test issues due to timeouts
|
2023-12-06 18:05:20 +08: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
|
2024-05-27 21:19:35 +08:00
|
|
|
- ./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; }
|
2019-02-09 17:04:39 +08:00
|
|
|
compile_script:
|
2021-12-14 14:53:39 +08:00
|
|
|
- make V=1 && make V=1 examples && cd tests && make V=1
|
2019-02-09 17:04:39 +08:00
|
|
|
test_script:
|
2019-10-09 15:20:29 +08: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 17:04:39 +08: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 15:20:04 +08: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.
|
2021-10-09 02:43:19 +08:00
|
|
|
- sudo -u nobody make V=1 TFLAGS="-n !SFTP !SCP" test-ci
|
2019-02-09 17:04:39 +08:00
|
|
|
install_script:
|
|
|
|
- make V=1 install
|