123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436 |
- #***************************************************************************
- # _ _ ____ _
- # Project ___| | | | _ \| |
- # / __| | | | |_) | |
- # | (__| |_| | _ <| |___
- # \___|\___/|_| \_\_____|
- #
- # Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
- #
- # This software is licensed as described in the file COPYING, which
- # you should have received as part of this distribution. The terms
- # are also available at https://curl.se/docs/copyright.html.
- #
- # 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.
- #
- ###########################################################################
- language: c
- os: linux
- dist: bionic
- cache:
- directories:
- - $HOME/wolfssl-4.4.0-stable
- - $HOME/mesalink-1.0.0
- - $HOME/nghttp2-1.39.2
- env:
- global:
- - LD_LIBRARY_PATH=/usr/local/lib
- addons:
- apt: &common_apt
- config:
- retries: true
- packages: &common_packages
- - cmake
- - valgrind
- - libev-dev
- - libc-ares-dev
- - g++-8
- - stunnel4
- - libidn2-dev
- - gnutls-bin
- - python-impacket
- - ninja-build
- jobs:
- include:
- - env:
- - T=normal C="--with-gssapi --with-libssh2" CHECKSRC=1
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - krb5-user
- - libssh2-1-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=normal C=--with-libssh
- # Avoid bionic, its pre-release libssh version triggers deprecation warnings.
- dist: focal
- addons:
- apt:
- <<: *common_apt
- packages:
- - cmake
- - valgrind
- - libev-dev
- - libc-ares-dev
- - g++-8
- - stunnel4
- - libidn2-dev
- - gnutls-bin
- # The above list is common_packages minus impacket.
- - libssh-dev
- - ninja-build
- - env:
- - T=normal C="--enable-ares"
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- - env:
- - T=normal C="--disable-proxy"
- - env:
- - T=normal C="--disable-verbose" CPPFLAGS="-Wno-variadic-macros" NOTESTS=1
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=novalgrind BORINGSSL=yes C="--with-ssl=$HOME/boringssl" LD_LIBRARY_PATH=/home/travis/boringssl/lib:/usr/local/lib
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- before_install:
- - eval "$(gimme stable)"; gimme --list # Install latest Go (for boringssl)
- - env:
- - T=novalgrind QUICHE="yes" C="--with-ssl=$HOME/quiche/deps/boringssl/src --with-quiche=$HOME/quiche/target/release" LD_LIBRARY_PATH=$HOME/quiche/target/release:/usr/local/lib
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug HYPER="yes" C="--with-hyper=$HOME/hyper" LD_LIBRARY_PATH=$HOME/hyper/target/debug:/usr/local/lib TFLAGS="1 to 29"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=novalgrind LIBRESSL=yes C="--with-ssl=$HOME/libressl" LD_LIBRARY_PATH=/home/travis/libressl/lib:/usr/local/lib
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- - env:
- - T=novalgrind NGTCP2=yes C="--with-ssl=$HOME/ngbuild --with-ngtcp2=$HOME/ngbuild --with-nghttp3=$HOME/ngbuild" NOTESTS=
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=novalgrind NGTCP2=yes GNUTLS=yes C="PKG_CONFIG_PATH=$HOME/ngbuild --without-ssl --with-gnutls=$HOME/ngbuild --with-ngtcp2=$HOME/ngbuild --with-nghttp3=$HOME/ngbuild" NOTESTS=
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - autogen
- - automake
- - autopoint
- - bison
- - gperf
- - libgmp-dev
- - libopts25-dev
- - libp11-kit-dev
- - libtasn1-6-dev
- - nettle-dev
- - env:
- - T=debug-wolfssl C="--with-wolfssl --without-ssl"
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug OPENSSL3="yes" C="--with-ssl=$HOME/openssl3" LD_LIBRARY_PATH=/home/travis/openssl3/lib:/usr/local/lib TFLAGS="https ftps"
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug-mesalink C="--with-mesalink --without-ssl" MESALINK=yes
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug
- - &clang OVERRIDE_CC="CC=clang-9" OVERRIDE_CXX="CXX=clang++-9"
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - &clang_packages [*common_packages, clang-9]
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug C="--enable-hsts --disable-alt-svc"
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug C="--with-mbedtls --without-ssl"
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - libmbedtls-dev
- - env:
- - T=debug C="--with-gnutls --without-ssl"
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libgnutls28-dev
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug C="--with-nss --without-ssl" NOTESTS=1 CPPFLAGS="-isystem /usr/include/nss"
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libnss3-dev
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=iconv
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- - env:
- - T=cmake BORINGSSL=yes QUICHE=yes C="-GNinja -DUSE_QUICHE=1 -DOPENSSL_ROOT_DIR=$HOME/boringssl -DCURL_BROTLI=1 -DCURL_ZSTD=1" TFLAGS="https ftps"
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- - PKG_CONFIG_PATH="$HOME/quiche/target/release"
- before_install:
- - eval "$(gimme stable)"; gimme --list # Install latest Go (for boringssl)
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=cmake NGTCP2=yes C="-GNinja -DUSE_NGTCP2=ON -DCURL_BROTLI=1 -DCURL_ZSTD=1"
- - *clang
- - PKG_CONFIG_PATH="$HOME/ngbuild/lib/pkgconfig"
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=torture
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - lcov
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - libssh2-1-dev
- - env:
- - T=distcheck
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=fuzzer
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=tidy
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - clang-tidy-9
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=scan-build
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" LIBS="-ldl -lubsan" TFLAGS=-n
- - *clang
- compiler: clang
- addons:
- apt:
- <<: *common_apt
- packages:
- - *clang_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - env:
- - T=debug C="" TFLAGS=-n
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- arch: arm64
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - libev-dev
- - libssl-dev
- - libtool
- - pkg-config
- - zlib1g-dev
- - env:
- - T=debug C="" TFLAGS=-n
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- arch: ppc64le
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - libev-dev
- - libssl-dev
- - libtool
- - pkg-config
- - zlib1g-dev
- - env:
- - T=debug C="" TFLAGS=-n
- - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
- arch: s390x
- addons:
- apt:
- <<: *common_apt
- packages:
- - *common_packages
- - libpsl-dev
- - libbrotli-dev
- - libzstd-dev
- - libev-dev
- - libssl-dev
- - libtool
- - pkg-config
- - zlib1g-dev
- before_install:
- - export "${OVERRIDE_CC-blank=}"
- - export "${OVERRIDE_CXX-blank=}"
- install:
- - if [ "$T" = "coverage" ]; then pip2 install --user cpp-coveralls; fi
- # before_script and script:
- # Travis isn't reliable catching errors in inline script commands (#3730).
- # Do not add anything here, instead add to the respective script.
- before_script:
- - ./scripts/travis/before_script.sh || travis_terminate 1
- script:
- - ./scripts/travis/script.sh || travis_terminate 1
- # select branches to avoid testing feature branches twice (as branch and as pull request)
- branches:
- only:
- - master
- - /\/ci$/
- notifications:
- email: false
|