]> granicus.if.org Git - curl/commitdiff
travis: add a quiche build
authorDaniel Stenberg <daniel@haxx.se>
Sat, 10 Aug 2019 21:28:57 +0000 (23:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Aug 2019 08:11:32 +0000 (10:11 +0200)
Closes #4207

.travis.yml

index b002f7555b817e816d433f02784ec1975235f691..810ebb8f222c0232e5d2c89ed993d1e3ede76a39 100644 (file)
@@ -97,6 +97,20 @@ matrix:
                       - *common_packages
                       - libpsl-dev
                       - libbrotli-dev
+        - os: linux
+          compiler: gcc
+          dist: xenial
+          env:
+              - T=novalgrind BORINGSSL=yes QUICHE="yes" C="--with-ssl=$HOME/boringssl --with-quiche=$home/quiche --enable-alt-svc" LD_LIBRARY_PATH=/home/travis/boringssl/lib:/usr/local/lib
+              - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
+          addons:
+              apt:
+                  sources:
+                      - *common_sources
+                  packages:
+                      - *common_packages
+                      - libpsl-dev
+                      - libbrotli-dev
         - os: linux
           compiler: gcc
           dist: xenial
@@ -405,11 +419,24 @@ before_script:
         cd .. &&
         mkdir lib &&
         cd lib &&
-        ln -s ../build/crypto/libcrypto.so . &&
-        ln -s ../build/ssl/libssl.so . &&
+        cp ../build/crypto/libcrypto.so . &&
+        cp ../build/ssl/libssl.so . &&
         echo "BoringSSL lib dir: "`pwd` &&
+        cd ../build &&
+        make clean && rm -f CMakeCache.txt &&
+        CXX="g++" CC="gcc" cmake -DCMAKE_POSITION_INDEPENDENT_CODE=on .. &&
+        make &&
         export LIBS=-lpthread )
       fi
+    - |
+      if [ "$TRAVIS_OS_NAME" = linux -a "$QUICHE" ]; then
+        (cd $HOME &&
+        git clone --depth=1 https://github.com/cloudflare/quiche.git &&
+        curl https://sh.rustup.rs -sSf | sh -s -- -y &&
+        source $HOME/.cargo/env &&
+        cd quiche &&
+        QUICHE_BSSL_PATH=$HOME/boringssl cargo build -v --release)
+      fi
     - |
       if [ $TRAVIS_OS_NAME = linux ]; then
         if [ ! -e $HOME/wolfssl-4.0.0-stable/Makefile ]; then