summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml10
-rwxr-xr-xscripts/travis/before_script.sh11
2 files changed, 21 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index e6ad74c99..408d4b7ff 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -125,6 +125,16 @@ jobs:
- libbrotli-dev
- libzstd-dev
- env:
+ - T=debug RUSTLS="yes" C="--with-rustls=$HOME/crust --without-ssl" NOTESTS=1
+ 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 c4a5adb8c..231b6ba27 100755
--- a/scripts/travis/before_script.sh
+++ b/scripts/travis/before_script.sh
@@ -126,6 +126,17 @@ if [ "$TRAVIS_OS_NAME" = linux -a "$QUICHE" ]; then
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/
fi
+if [ "$TRAVIS_OS_NAME" = linux -a "$RUSTLS" ]; then
+ cd $HOME
+ git clone --depth=1 --recursive https://github.com/abetterinternet/crustls.git
+ curl https://sh.rustup.rs -sSf | sh -s -- -y
+ source $HOME/.cargo/env
+ cargo install cbindgen
+ cd $HOME/crustls
+ make
+ make DESTDIR=$HOME/crust install
+fi
+
# Install common libraries.
# The library build directories are set to be cached by .travis.yml. If you are
# changing a build directory name below (eg a version change) then you must