travis: add bearssl build

Closes #7133
This commit is contained in:
Michael Forney 2021-05-26 00:16:19 -07:00 committed by Daniel Stenberg
parent 7f9c5af8b3
commit a2fe2f04cd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 31 additions and 0 deletions

View File

@ -26,6 +26,7 @@ cache:
directories:
- $HOME/wolfssl-4.7.0-stable
- $HOME/mesalink-1.0.0
- $HOME/bearssl-0.6
env:
global:
@ -134,6 +135,16 @@ jobs:
- libpsl-dev
- libbrotli-dev
- libzstd-dev
- env:
- T=debug-bearssl C="--with-bearssl" BEARSSL="yes"
addons:
apt:
<<: *common_apt
packages:
- *common_packages
- libpsl-dev
- libbrotli-dev
- libzstd-dev
- env:
- T=novalgrind LIBRESSL=yes C="--with-openssl=$HOME/libressl" LD_LIBRARY_PATH=/home/travis/libressl/lib:/usr/local/lib
- OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"

View File

@ -175,4 +175,18 @@ if [ $TRAVIS_OS_NAME = linux ]; then
sudo make install
fi
if [ "$BEARSSL" = "yes" ]; then
if [ ! -e $HOME/bearssl-0.6/Makefile ]; then
cd $HOME
curl -LO https://bearssl.org/bearssl-0.6.tar.gz
tar -xzf bearssl-0.6.tar.gz
cd bearssl-0.6
make
fi
cd $HOME/bearssl-0.6
sudo cp inc/*.h /usr/local/include
sudo cp build/libbearssl.* /usr/local/lib
fi
fi

View File

@ -76,6 +76,12 @@ if [ "$T" = "debug-rustls" ]; then
make "TFLAGS=HTTPS !313" test-nonflaky
fi
if [ "$T" = "debug-bearssl" ]; then
./configure --enable-debug --enable-werror $C
make
make "TFLAGS=-n !313" test-nonflaky
fi
if [ "$T" = "novalgrind" ]; then
./configure --enable-werror $C
make