diff options
author | Michael Forney <mforney@mforney.org> | 2021-05-26 00:16:19 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-26 14:43:56 +0200 |
commit | a2fe2f04cd7cb666b2c103f898f6147239be3041 (patch) | |
tree | 8cbb0880b3caa9490341813ae059b3266ffa2b59 | |
parent | 7f9c5af8b3c905ae9f96ab16b92049548ca407fb (diff) | |
download | curl-a2fe2f04cd7cb666b2c103f898f6147239be3041.tar.gz |
travis: add bearssl build
Closes #7133
-rw-r--r-- | .travis.yml | 11 | ||||
-rwxr-xr-x | scripts/travis/before_script.sh | 14 | ||||
-rwxr-xr-x | scripts/travis/script.sh | 6 |
3 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 3fdc761c7..20863771c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ cache: directories: - $HOME/wolfssl-4.7.0-stable - $HOME/mesalink-1.0.0 + - $HOME/bearssl-0.6 env: global: @@ -135,6 +136,16 @@ jobs: - 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" - env: diff --git a/scripts/travis/before_script.sh b/scripts/travis/before_script.sh index 96825f0ab..1bb76f4bc 100755 --- a/scripts/travis/before_script.sh +++ b/scripts/travis/before_script.sh @@ -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 diff --git a/scripts/travis/script.sh b/scripts/travis/script.sh index a824c1b1e..f2286850d 100755 --- a/scripts/travis/script.sh +++ b/scripts/travis/script.sh @@ -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 |