1#*************************************************************************** 2# _ _ ____ _ 3# Project ___| | | | _ \| | 4# / __| | | | |_) | | 5# | (__| |_| | _ <| |___ 6# \___|\___/|_| \_\_____| 7# 8# Copyright (C) 1998 - 2021, 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 25freebsd_task: 26 name: FreeBSD 27 28 matrix: 29 # A stable 13.0 image likely won't be available before early 2021 30 # image_family: freebsd-13-0-snap 31 - name: FreeBSD 12.2 32 freebsd_instance: 33 image_family: freebsd-12-2 34 - name: FreeBSD 11.4 35 freebsd_instance: 36 image_family: freebsd-11-4 37 38 env: 39 CIRRUS_CLONE_DEPTH: 10 40 CRYPTOGRAPHY_DONT_BUILD_RUST: 1 41 MAKE_FLAGS: -j 2 42 43 pkginstall_script: 44 - pkg update -f 45 - pkg install -y autoconf automake libtool pkgconf brotli openldap-client heimdal libpsl libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel 46 - pkg delete -y curl 47 - easy_install "cryptography<3.2" 48 - easy_install "pyOpenSSL<20.0" 49 - easy_install "impacket" 50 configure_script: 51 - ./buildconf 52 - case `uname -r` in 53 12.1*) 54 export CC=clang; 55 export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g"; 56 export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g"; 57 export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;; 58 esac 59 - ./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; } 60 compile_script: 61 - make V=1 && cd tests && make V=1 62 test_script: 63 # blackhole? 64 - sysctl net.inet.tcp.blackhole 65 # make sure we don't run blackhole != 0 66 - sudo sysctl net.inet.tcp.blackhole=0 67 # Some tests won't run if run as root so run them as another user. 68 # Make directories world writable so the test step can write wherever it needs. 69 - find . -type d -exec chmod 777 {} \; 70 # The OpenSSH server instance for the testsuite cannot be started on FreeBSD, 71 # therefore the SFTP and SCP tests are disabled right away from the beginning. 72 - sudo -u nobody make V=1 TFLAGS="-n -a -p !flaky !SFTP !SCP" test-nonflaky 73 install_script: 74 - make V=1 install 75 76windows_task: 77 name: Windows 78 timeout_in: 90m 79 windows_container: 80 image: ${container_img} 81 82 matrix: 83 - name: Windows 32-bit shared/release Schannel/SSPI/WinIDN/libssh2 84 env: 85 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019 86 container_cmd: C:\msys64\usr\bin\sh 87 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 88 configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 89 tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP 90 - name: Windows 32-bit static/release Schannel/SSPI/WinIDN/libssh2 91 env: 92 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019 93 container_cmd: C:\msys64\usr\bin\sh 94 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 95 configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --disable-shared --enable-static 96 tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP 97 curl_LDFLAGS: -all-static 98 PKG_CONFIG: pkg-config --static 99 - name: Windows 64-bit shared/release Schannel/SSPI/WinIDN/libssh2 100 env: 101 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019 102 container_cmd: C:\msys64\usr\bin\sh 103 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 104 configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 105 tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP 106 - name: Windows 64-bit static/release Schannel/SSPI/WinIDN/libssh2 107 env: 108 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019 109 container_cmd: C:\msys64\usr\bin\sh 110 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 111 configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --disable-shared --enable-static 112 tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP 113 curl_LDFLAGS: -all-static 114 PKG_CONFIG: pkg-config --static 115 116 env: 117 CIRRUS_CLONE_DEPTH: 10 118 MSYS2_PATH_TYPE: inherit 119 120 prepare_script: | 121 %container_cmd% -l -c "cd $(echo '%cd%') && %prepare%" 122 configure_script: | 123 %container_cmd% -l -c "cd $(echo '%cd%') && ./buildconf && ./configure %configure%" 124 compile_script: | 125 %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 && cd tests && make V=1" 126 install_script: | 127 %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 install && PATH=/usr/bin:/bin find . -type f -path '*/.libs/*.exe' -print -execdir mv -t .. {} \;" 128 test_script: | 129 %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 TFLAGS='-r -rm %tests%' test-nonflaky" 130