summaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
parentaab3a77e8c1be2e5333d1ae436ab99d8b8f73580 (diff)
downloadcurl-7dbb0a87e6b54205ced5ef499d00205686ba65c6.tar.gz
travis: add a rustls build
... that doesn't run any tests (yet) Closes #6750
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis/before_script.sh11
1 files changed, 11 insertions, 0 deletions
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