]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
travis: add a rustls build
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Mar 2021 08:51:17 +0000 (09:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 16 Mar 2021 09:08:15 +0000 (10:08 +0100)
... that doesn't run any tests (yet)

Closes #6750

.travis.yml
scripts/travis/before_script.sh

index e6ad74c991935fbca7163b8d1022afcb6a9e1f34..408d4b7ff8af838da581e8b4fd95f2b641c62f21 100644 (file)
@@ -124,6 +124,16 @@ jobs:
         - libpsl-dev
         - 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"
index c4a5adb8c4fd1a8cf40a15a9dc5de7c6fa8db2f4..231b6ba276f5921017aa0a583287faf7ee1682dc 100755 (executable)
@@ -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