summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-16 09:51:17 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-16 10:08:15 +0100
commit7dbb0a87e6b54205ced5ef499d00205686ba65c6 (patch)
treeac2474cd6683cf75c8ea843e77fe1ac56a4e988f
parentaab3a77e8c1be2e5333d1ae436ab99d8b8f73580 (diff)
downloadcurl-7dbb0a87e6b54205ced5ef499d00205686ba65c6.tar.gz
travis: add a rustls build
... that doesn't run any tests (yet) Closes #6750
-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