]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
travis: Add ngtcp2 and quiche tests for CMake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 8 May 2020 22:18:29 +0000 (00:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 10 May 2020 21:36:54 +0000 (23:36 +0200)
To avoid an explosion of jobs, extend the existing CMake tests with
ngtcp2 and quiche support. macOS was previously moved to GitHub actions,
so the non-Linux case can be dropped.

.travis.yml
scripts/travis/script.sh

index 59f075fc03d16e064796d62760f0a0481f92bf0c..a5ce9625f29593d2e81ecf8e07dd62b43bfe0f78 100644 (file)
@@ -299,9 +299,15 @@ matrix:
         - os: linux
           compiler: gcc
           dist: bionic
+          before_install:
+              # Install and use the current stable release of Go (for boringssl)
+              - gimme --list
+              - eval "$(gimme stable)"
+              - gimme --list
           env:
-              - T=cmake
+              - T=cmake BORINGSSL=yes QUICHE=yes C="-DUSE_QUICHE=1 -DOPENSSL_ROOT_DIR=$HOME/boringssl"
               - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
+              - PKG_CONFIG_PATH="$HOME/quiche/target/release"
           addons:
               apt:
                   sources:
@@ -314,8 +320,9 @@ matrix:
           compiler: clang
           dist: bionic
           env:
-              - T=cmake
+              - T=cmake NGTCP2=yes C="-DUSE_NGTCP2=ON"
               - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
+              - PKG_CONFIG_PATH="$HOME/ngbuild/lib/pkgconfig"
           addons:
               apt:
                   sources:
index 57625fc6db4605f042883439b1715436a143fbb2..2b20a991097c3c12c0c3bdaab583a954deb168c0 100755 (executable)
@@ -106,13 +106,8 @@ if [ "$T" = "iconv" ]; then
 fi
 
 if [ "$T" = "cmake" ]; then
-  if [ $TRAVIS_OS_NAME = linux ]; then
-    cmake -H. -Bbuild -DCURL_WERROR=ON
-    cmake --build build
-  else
-    cmake -H. -Bbuild -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON
-    cmake --build build
-  fi
+  cmake -H. -Bbuild -DCURL_WERROR=ON $C
+  cmake --build build
 fi
 
 if [ "$T" = "distcheck" ]; then