summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-14 14:10:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-17 14:40:25 +0100
commit0a7f9bc251b862a8b01f801af1d3a4c185b7dd29 (patch)
tree2e43f25e5ac744018db940975ff810db1f8e95e8
parent3abb6ab2c359839a8681a0f2bea8af734e749fd7 (diff)
downloadcurl-bagder/hyper.tar.gz
travis: add CI job for Hyper buildbagder/hyper
-rw-r--r--.travis.yml10
-rwxr-xr-xscripts/travis/before_script.sh9
2 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index b37ac7156..5c65cee89 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -114,6 +114,16 @@ jobs:
- 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:
diff --git a/scripts/travis/before_script.sh b/scripts/travis/before_script.sh
index 83dc1e31b..162bbaf41 100755
--- a/scripts/travis/before_script.sh
+++ b/scripts/travis/before_script.sh
@@ -103,6 +103,15 @@ if [ "$TRAVIS_OS_NAME" = linux -a "$LIBRESSL" ]; then
make install
fi
+if [ "$TRAVIS_OS_NAME" = linux -a "$HYPER" ]; then
+ cd $HOME
+ git clone --depth=1 -b hyper-capi https://github.com/hyperium/hyper.git
+ curl https://sh.rustup.rs -sSf | sh -s -- -y
+ source $HOME/.cargo/env
+ cd $HOME/hyper
+ cargo build -v --no-default-features --features ffi
+fi
+
if [ "$TRAVIS_OS_NAME" = linux -a "$QUICHE" ]; then
cd $HOME
git clone --depth=1 --recursive https://github.com/cloudflare/quiche.git